
/* std::__sso_string::TEMPNAMEPLACEHOLDERVALUE(std::__sso_string&&) */

__sso_string * __thiscall std::__sso_string::operator=(__sso_string *this,__sso_string *param_1)

{
  __sso_string *__src;
  undefined8 uVar1;
  size_t __n;
  __sso_string *p_Var2;
  __sso_string *__dest;
  
  p_Var2 = param_1 + 0x10;
  __src = *(__sso_string **)param_1;
  __dest = *(__sso_string **)this;
  if (__src == p_Var2) {
    __n = *(size_t *)(param_1 + 8);
    if (__n != 0) {
      if (__n == 1) {
        *__dest = param_1[0x10];
        __n = *(size_t *)(param_1 + 8);
        __dest = *(__sso_string **)this;
      }
      else {
        memcpy(__dest,__src,__n);
        __n = *(size_t *)(param_1 + 8);
        __dest = *(__sso_string **)this;
      }
    }
    *(size_t *)(this + 8) = __n;
    __dest[__n] = (__sso_string)0x0;
    p_Var2 = *(__sso_string **)param_1;
  }
  else {
    if (__dest == this + 0x10) {
      *(__sso_string **)this = __src;
      *(undefined8 *)(this + 8) = *(undefined8 *)(param_1 + 8);
      *(undefined8 *)(this + 0x10) = *(undefined8 *)(param_1 + 0x10);
    }
    else {
      *(__sso_string **)this = __src;
      uVar1 = *(undefined8 *)(this + 0x10);
      *(undefined8 *)(this + 8) = *(undefined8 *)(param_1 + 8);
      *(undefined8 *)(this + 0x10) = *(undefined8 *)(param_1 + 0x10);
      if (__dest != (__sso_string *)0x0) {
        *(__sso_string **)param_1 = __dest;
        *(undefined8 *)(param_1 + 0x10) = uVar1;
        p_Var2 = __dest;
        goto LAB_00336718;
      }
    }
    *(__sso_string **)param_1 = p_Var2;
  }
LAB_00336718:
  *(undefined8 *)(param_1 + 8) = 0;
  *p_Var2 = (__sso_string)0x0;
  return this;
}



undefined8 * FUN_003366d0(undefined8 *param_1,undefined8 *param_2)

{
  undefined8 *__src;
  undefined8 uVar1;
  size_t __n;
  undefined8 *puVar2;
  undefined8 *__dest;
  
  puVar2 = param_2 + 2;
  __src = (undefined8 *)*param_2;
  __dest = (undefined8 *)*param_1;
  if (__src == puVar2) {
    __n = param_2[1];
    if (__n != 0) {
      if (__n == 1) {
        *(undefined1 *)__dest = *(undefined1 *)(param_2 + 2);
        __n = param_2[1];
        __dest = (undefined8 *)*param_1;
      }
      else {
        memcpy(__dest,__src,__n);
        __n = param_2[1];
        __dest = (undefined8 *)*param_1;
      }
    }
    param_1[1] = __n;
    *(undefined1 *)((long)__dest + __n) = 0;
    puVar2 = (undefined8 *)*param_2;
  }
  else {
    if (__dest == param_1 + 2) {
      *param_1 = __src;
      param_1[1] = param_2[1];
      param_1[2] = param_2[2];
    }
    else {
      *param_1 = __src;
      uVar1 = param_1[2];
      param_1[1] = param_2[1];
      param_1[2] = param_2[2];
      if (__dest != (undefined8 *)0x0) {
        *param_2 = __dest;
        param_2[2] = uVar1;
        puVar2 = __dest;
        goto LAB_00336718;
      }
    }
    *param_2 = puVar2;
  }
LAB_00336718:
  param_2[1] = 0;
  *(undefined1 *)puVar2 = 0;
  return param_1;
}


PUSH RBP
MOV RBP,RDI
PUSH RBX
MOV RBX,RSI
LEA RAX,[RBX + 0x10]
SUB RSP,0x8
MOV RSI,qword ptr [RSI]
MOV RDI,qword ptr [RDI]
CMP RSI,RAX
JZ 0x00336750
LEA RDX,[RBP + 0x10]
CMP RDI,RDX
JZ 0x00336730
MOV qword ptr [RBP],RSI
MOV RCX,qword ptr [RBX + 0x8]
MOV RDX,qword ptr [RBP + 0x10]
MOV qword ptr [RBP + 0x8],RCX
MOV RCX,qword ptr [RBX + 0x10]
MOV qword ptr [RBP + 0x10],RCX
TEST RDI,RDI
JZ 0x00336744
MOV qword ptr [RBX],RDI
MOV qword ptr [RBX + 0x10],RDX
MOV qword ptr [RBX + 0x8],0x0
MOV RAX,RBP
MOV byte ptr [RDI],0x0
ADD RSP,0x8
POP RBX
POP RBP
RET
MOV qword ptr [RBP],RSI
MOV RDX,qword ptr [RBX + 0x8]
MOV qword ptr [RBP + 0x8],RDX
MOV RDX,qword ptr [RBX + 0x10]
MOV qword ptr [RBP + 0x10],RDX
MOV qword ptr [RBX],RAX
MOV RDI,RAX
JMP 0x00336718
MOV RDX,qword ptr [RBX + 0x8]
TEST RDX,RDX
JZ 0x0033676c
CMP RDX,0x1
JZ 0x00336780
CALL 0x00147aa0
MOV RDX,qword ptr [RBX + 0x8]
MOV RDI,qword ptr [RBP]
MOV qword ptr [RBP + 0x8],RDX
MOV byte ptr [RDI + RDX*0x1],0x0
MOV RDI,qword ptr [RBX]
JMP 0x00336718
MOVZX EAX,byte ptr [RBX + 0x10]
MOV byte ptr [RDI],AL
MOV RDX,qword ptr [RBX + 0x8]
MOV RDI,qword ptr [RBP]
JMP 0x0033676c
(translation_unit "undefined8 * FUN_003366d0(undefined8 *param_1,undefined8 *param_2)\n\n{\n  undefined8 *__src;\n  undefined8 uVar1;\n  size_t __n;\n  undefined8 *puVar2;\n  undefined8 *__dest;\n  \n  puVar2 = param_2 + 2;\n  __src = (undefined8 *)*param_2;\n  __dest = (undefined8 *)*param_1;\n  if (__src == puVar2) {\n    __n = param_2[1];\n    if (__n != 0) {\n      if (__n == 1) {\n        *(undefined1 *)__dest = *(undefined1 *)(param_2 + 2);\n        __n = param_2[1];\n        __dest = (undefined8 *)*param_1;\n      }\n      else {\n        memcpy(__dest,__src,__n);\n        __n = param_2[1];\n        __dest = (undefined8 *)*param_1;\n      }\n    }\n    param_1[1] = __n;\n    *(undefined1 *)((long)__dest + __n) = 0;\n    puVar2 = (undefined8 *)*param_2;\n  }\n  else {\n    if (__dest == param_1 + 2) {\n      *param_1 = __src;\n      param_1[1] = param_2[1];\n      param_1[2] = param_2[2];\n    }\n    else {\n      *param_1 = __src;\n      uVar1 = param_1[2];\n      param_1[1] = param_2[1];\n      param_1[2] = param_2[2];\n      if (__dest != (undefined8 *)0x0) {\n        *param_2 = __dest;\n        param_2[2] = uVar1;\n        puVar2 = __dest;\n        goto LAB_00336718;\n      }\n    }\n    *param_2 = puVar2;\n  }\nLAB_00336718:\n  param_2[1] = 0;\n  *(undefined1 *)puVar2 = 0;\n  return param_1;\n}\n\n" (function_definition "undefined8 * FUN_003366d0(undefined8 *param_1,undefined8 *param_2)\n\n{\n  undefined8 *__src;\n  undefined8 uVar1;\n  size_t __n;\n  undefined8 *puVar2;\n  undefined8 *__dest;\n  \n  puVar2 = param_2 + 2;\n  __src = (undefined8 *)*param_2;\n  __dest = (undefined8 *)*param_1;\n  if (__src == puVar2) {\n    __n = param_2[1];\n    if (__n != 0) {\n      if (__n == 1) {\n        *(undefined1 *)__dest = *(undefined1 *)(param_2 + 2);\n        __n = param_2[1];\n        __dest = (undefined8 *)*param_1;\n      }\n      else {\n        memcpy(__dest,__src,__n);\n        __n = param_2[1];\n        __dest = (undefined8 *)*param_1;\n      }\n    }\n    param_1[1] = __n;\n    *(undefined1 *)((long)__dest + __n) = 0;\n    puVar2 = (undefined8 *)*param_2;\n  }\n  else {\n    if (__dest == param_1 + 2) {\n      *param_1 = __src;\n      param_1[1] = param_2[1];\n      param_1[2] = param_2[2];\n    }\n    else {\n      *param_1 = __src;\n      uVar1 = param_1[2];\n      param_1[1] = param_2[1];\n      param_1[2] = param_2[2];\n      if (__dest != (undefined8 *)0x0) {\n        *param_2 = __dest;\n        param_2[2] = uVar1;\n        puVar2 = __dest;\n        goto LAB_00336718;\n      }\n    }\n    *param_2 = puVar2;\n  }\nLAB_00336718:\n  param_2[1] = 0;\n  *(undefined1 *)puVar2 = 0;\n  return param_1;\n}" type_identifier (pointer_declarator "* FUN_003366d0(undefined8 *param_1,undefined8 *param_2)" * (function_declarator "FUN_003366d0(undefined8 *param_1,undefined8 *param_2)" identifier (parameter_list "(undefined8 *param_1,undefined8 *param_2)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined8 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  undefined8 *__src;\n  undefined8 uVar1;\n  size_t __n;\n  undefined8 *puVar2;\n  undefined8 *__dest;\n  \n  puVar2 = param_2 + 2;\n  __src = (undefined8 *)*param_2;\n  __dest = (undefined8 *)*param_1;\n  if (__src == puVar2) {\n    __n = param_2[1];\n    if (__n != 0) {\n      if (__n == 1) {\n        *(undefined1 *)__dest = *(undefined1 *)(param_2 + 2);\n        __n = param_2[1];\n        __dest = (undefined8 *)*param_1;\n      }\n      else {\n        memcpy(__dest,__src,__n);\n        __n = param_2[1];\n        __dest = (undefined8 *)*param_1;\n      }\n    }\n    param_1[1] = __n;\n    *(undefined1 *)((long)__dest + __n) = 0;\n    puVar2 = (undefined8 *)*param_2;\n  }\n  else {\n    if (__dest == param_1 + 2) {\n      *param_1 = __src;\n      param_1[1] = param_2[1];\n      param_1[2] = param_2[2];\n    }\n    else {\n      *param_1 = __src;\n      uVar1 = param_1[2];\n      param_1[1] = param_2[1];\n      param_1[2] = param_2[2];\n      if (__dest != (undefined8 *)0x0) {\n        *param_2 = __dest;\n        param_2[2] = uVar1;\n        puVar2 = __dest;\n        goto LAB_00336718;\n      }\n    }\n    *param_2 = puVar2;\n  }\nLAB_00336718:\n  param_2[1] = 0;\n  *(undefined1 *)puVar2 = 0;\n  return param_1;\n}" { (declaration "undefined8 *__src;" type_identifier (pointer_declarator "*__src" * identifier) ;) (declaration "undefined8 uVar1;" type_identifier identifier ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "undefined8 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined8 *__dest;" type_identifier (pointer_declarator "*__dest" * identifier) ;) (expression_statement "puVar2 = param_2 + 2;" (assignment_expression "puVar2 = param_2 + 2" identifier = (binary_expression "param_2 + 2" identifier + number_literal)) ;) (expression_statement "__src = (undefined8 *)*param_2;" (assignment_expression "__src = (undefined8 *)*param_2" identifier = (cast_expression "(undefined8 *)*param_2" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (expression_statement "__dest = (undefined8 *)*param_1;" (assignment_expression "__dest = (undefined8 *)*param_1" identifier = (cast_expression "(undefined8 *)*param_1" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (__src == puVar2) {\n    __n = param_2[1];\n    if (__n != 0) {\n      if (__n == 1) {\n        *(undefined1 *)__dest = *(undefined1 *)(param_2 + 2);\n        __n = param_2[1];\n        __dest = (undefined8 *)*param_1;\n      }\n      else {\n        memcpy(__dest,__src,__n);\n        __n = param_2[1];\n        __dest = (undefined8 *)*param_1;\n      }\n    }\n    param_1[1] = __n;\n    *(undefined1 *)((long)__dest + __n) = 0;\n    puVar2 = (undefined8 *)*param_2;\n  }\n  else {\n    if (__dest == param_1 + 2) {\n      *param_1 = __src;\n      param_1[1] = param_2[1];\n      param_1[2] = param_2[2];\n    }\n    else {\n      *param_1 = __src;\n      uVar1 = param_1[2];\n      param_1[1] = param_2[1];\n      param_1[2] = param_2[2];\n      if (__dest != (undefined8 *)0x0) {\n        *param_2 = __dest;\n        param_2[2] = uVar1;\n        puVar2 = __dest;\n        goto LAB_00336718;\n      }\n    }\n    *param_2 = puVar2;\n  }" if (parenthesized_expression "(__src == puVar2)" ( (binary_expression "__src == puVar2" identifier == identifier) )) (compound_statement "{\n    __n = param_2[1];\n    if (__n != 0) {\n      if (__n == 1) {\n        *(undefined1 *)__dest = *(undefined1 *)(param_2 + 2);\n        __n = param_2[1];\n        __dest = (undefined8 *)*param_1;\n      }\n      else {\n        memcpy(__dest,__src,__n);\n        __n = param_2[1];\n        __dest = (undefined8 *)*param_1;\n      }\n    }\n    param_1[1] = __n;\n    *(undefined1 *)((long)__dest + __n) = 0;\n    puVar2 = (undefined8 *)*param_2;\n  }" { (expression_statement "__n = param_2[1];" (assignment_expression "__n = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (if_statement "if (__n != 0) {\n      if (__n == 1) {\n        *(undefined1 *)__dest = *(undefined1 *)(param_2 + 2);\n        __n = param_2[1];\n        __dest = (undefined8 *)*param_1;\n      }\n      else {\n        memcpy(__dest,__src,__n);\n        __n = param_2[1];\n        __dest = (undefined8 *)*param_1;\n      }\n    }" if (parenthesized_expression "(__n != 0)" ( (binary_expression "__n != 0" identifier != number_literal) )) (compound_statement "{\n      if (__n == 1) {\n        *(undefined1 *)__dest = *(undefined1 *)(param_2 + 2);\n        __n = param_2[1];\n        __dest = (undefined8 *)*param_1;\n      }\n      else {\n        memcpy(__dest,__src,__n);\n        __n = param_2[1];\n        __dest = (undefined8 *)*param_1;\n      }\n    }" { (if_statement "if (__n == 1) {\n        *(undefined1 *)__dest = *(undefined1 *)(param_2 + 2);\n        __n = param_2[1];\n        __dest = (undefined8 *)*param_1;\n      }\n      else {\n        memcpy(__dest,__src,__n);\n        __n = param_2[1];\n        __dest = (undefined8 *)*param_1;\n      }" if (parenthesized_expression "(__n == 1)" ( (binary_expression "__n == 1" identifier == number_literal) )) (compound_statement "{\n        *(undefined1 *)__dest = *(undefined1 *)(param_2 + 2);\n        __n = param_2[1];\n        __dest = (undefined8 *)*param_1;\n      }" { (expression_statement "*(undefined1 *)__dest = *(undefined1 *)(param_2 + 2);" (assignment_expression "*(undefined1 *)__dest = *(undefined1 *)(param_2 + 2)" (pointer_expression "*(undefined1 *)__dest" * (cast_expression "(undefined1 *)__dest" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (pointer_expression "*(undefined1 *)(param_2 + 2)" * (cast_expression "(undefined1 *)(param_2 + 2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 2)" ( (binary_expression "param_2 + 2" identifier + number_literal) ))))) ;) (expression_statement "__n = param_2[1];" (assignment_expression "__n = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "__dest = (undefined8 *)*param_1;" (assignment_expression "__dest = (undefined8 *)*param_1" identifier = (cast_expression "(undefined8 *)*param_1" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) }) (else_clause "else {\n        memcpy(__dest,__src,__n);\n        __n = param_2[1];\n        __dest = (undefined8 *)*param_1;\n      }" else (compound_statement "{\n        memcpy(__dest,__src,__n);\n        __n = param_2[1];\n        __dest = (undefined8 *)*param_1;\n      }" { (expression_statement "memcpy(__dest,__src,__n);" (call_expression "memcpy(__dest,__src,__n)" identifier (argument_list "(__dest,__src,__n)" ( identifier , identifier , identifier ))) ;) (expression_statement "__n = param_2[1];" (assignment_expression "__n = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "__dest = (undefined8 *)*param_1;" (assignment_expression "__dest = (undefined8 *)*param_1" identifier = (cast_expression "(undefined8 *)*param_1" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) }))) })) (expression_statement "param_1[1] = __n;" (assignment_expression "param_1[1] = __n" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined1 *)((long)__dest + __n) = 0;" (assignment_expression "*(undefined1 *)((long)__dest + __n) = 0" (pointer_expression "*(undefined1 *)((long)__dest + __n)" * (cast_expression "(undefined1 *)((long)__dest + __n)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)__dest + __n)" ( (binary_expression "(long)__dest + __n" (cast_expression "(long)__dest" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier) )))) = number_literal) ;) (expression_statement "puVar2 = (undefined8 *)*param_2;" (assignment_expression "puVar2 = (undefined8 *)*param_2" identifier = (cast_expression "(undefined8 *)*param_2" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) }) (else_clause "else {\n    if (__dest == param_1 + 2) {\n      *param_1 = __src;\n      param_1[1] = param_2[1];\n      param_1[2] = param_2[2];\n    }\n    else {\n      *param_1 = __src;\n      uVar1 = param_1[2];\n      param_1[1] = param_2[1];\n      param_1[2] = param_2[2];\n      if (__dest != (undefined8 *)0x0) {\n        *param_2 = __dest;\n        param_2[2] = uVar1;\n        puVar2 = __dest;\n        goto LAB_00336718;\n      }\n    }\n    *param_2 = puVar2;\n  }" else (compound_statement "{\n    if (__dest == param_1 + 2) {\n      *param_1 = __src;\n      param_1[1] = param_2[1];\n      param_1[2] = param_2[2];\n    }\n    else {\n      *param_1 = __src;\n      uVar1 = param_1[2];\n      param_1[1] = param_2[1];\n      param_1[2] = param_2[2];\n      if (__dest != (undefined8 *)0x0) {\n        *param_2 = __dest;\n        param_2[2] = uVar1;\n        puVar2 = __dest;\n        goto LAB_00336718;\n      }\n    }\n    *param_2 = puVar2;\n  }" { (if_statement "if (__dest == param_1 + 2) {\n      *param_1 = __src;\n      param_1[1] = param_2[1];\n      param_1[2] = param_2[2];\n    }\n    else {\n      *param_1 = __src;\n      uVar1 = param_1[2];\n      param_1[1] = param_2[1];\n      param_1[2] = param_2[2];\n      if (__dest != (undefined8 *)0x0) {\n        *param_2 = __dest;\n        param_2[2] = uVar1;\n        puVar2 = __dest;\n        goto LAB_00336718;\n      }\n    }" if (parenthesized_expression "(__dest == param_1 + 2)" ( (binary_expression "__dest == param_1 + 2" identifier == (binary_expression "param_1 + 2" identifier + number_literal)) )) (compound_statement "{\n      *param_1 = __src;\n      param_1[1] = param_2[1];\n      param_1[2] = param_2[2];\n    }" { (expression_statement "*param_1 = __src;" (assignment_expression "*param_1 = __src" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[1] = param_2[1];" (assignment_expression "param_1[1] = param_2[1]" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "param_1[2] = param_2[2];" (assignment_expression "param_1[2] = param_2[2]" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) }) (else_clause "else {\n      *param_1 = __src;\n      uVar1 = param_1[2];\n      param_1[1] = param_2[1];\n      param_1[2] = param_2[2];\n      if (__dest != (undefined8 *)0x0) {\n        *param_2 = __dest;\n        param_2[2] = uVar1;\n        puVar2 = __dest;\n        goto LAB_00336718;\n      }\n    }" else (compound_statement "{\n      *param_1 = __src;\n      uVar1 = param_1[2];\n      param_1[1] = param_2[1];\n      param_1[2] = param_2[2];\n      if (__dest != (undefined8 *)0x0) {\n        *param_2 = __dest;\n        param_2[2] = uVar1;\n        puVar2 = __dest;\n        goto LAB_00336718;\n      }\n    }" { (expression_statement "*param_1 = __src;" (assignment_expression "*param_1 = __src" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "uVar1 = param_1[2];" (assignment_expression "uVar1 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "param_1[1] = param_2[1];" (assignment_expression "param_1[1] = param_2[1]" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "param_1[2] = param_2[2];" (assignment_expression "param_1[2] = param_2[2]" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) (if_statement "if (__dest != (undefined8 *)0x0) {\n        *param_2 = __dest;\n        param_2[2] = uVar1;\n        puVar2 = __dest;\n        goto LAB_00336718;\n      }" if (parenthesized_expression "(__dest != (undefined8 *)0x0)" ( (binary_expression "__dest != (undefined8 *)0x0" identifier != (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        *param_2 = __dest;\n        param_2[2] = uVar1;\n        puVar2 = __dest;\n        goto LAB_00336718;\n      }" { (expression_statement "*param_2 = __dest;" (assignment_expression "*param_2 = __dest" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "param_2[2] = uVar1;" (assignment_expression "param_2[2] = uVar1" (subscript_expression "param_2[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2 = __dest;" (assignment_expression "puVar2 = __dest" identifier = identifier) ;) (goto_statement "goto LAB_00336718;" goto statement_identifier ;) })) }))) (expression_statement "*param_2 = puVar2;" (assignment_expression "*param_2 = puVar2" (pointer_expression "*param_2" * identifier) = identifier) ;) }))) (labeled_statement "LAB_00336718:\n  param_2[1] = 0;" statement_identifier : (expression_statement "param_2[1] = 0;" (assignment_expression "param_2[1] = 0" (subscript_expression "param_2[1]" identifier [ number_literal ]) = number_literal) ;)) (expression_statement "*(undefined1 *)puVar2 = 0;" (assignment_expression "*(undefined1 *)puVar2 = 0" (pointer_expression "*(undefined1 *)puVar2" * (cast_expression "(undefined1 *)puVar2" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "/* std::__sso_string::TEMPNAMEPLACEHOLDERVALUE(std::__sso_string&&) */\n\n__sso_string * __thiscall std::__sso_string::operator=(__sso_string *this,__sso_string *param_1)\n\n{\n  __sso_string *__src;\n  undefined8 uVar1;\n  size_t __n;\n  __sso_string *p_Var2;\n  __sso_string *__dest;\n  \n  p_Var2 = param_1 + 0x10;\n  __src = *(__sso_string **)param_1;\n  __dest = *(__sso_string **)this;\n  if (__src == p_Var2) {\n    __n = *(size_t *)(param_1 + 8);\n    if (__n != 0) {\n      if (__n == 1) {\n        *__dest = param_1[0x10];\n        __n = *(size_t *)(param_1 + 8);\n        __dest = *(__sso_string **)this;\n      }\n      else {\n        memcpy(__dest,__src,__n);\n        __n = *(size_t *)(param_1 + 8);\n        __dest = *(__sso_string **)this;\n      }\n    }\n    *(size_t *)(this + 8) = __n;\n    __dest[__n] = (__sso_string)0x0;\n    p_Var2 = *(__sso_string **)param_1;\n  }\n  else {\n    if (__dest == this + 0x10) {\n      *(__sso_string **)this = __src;\n      *(undefined8 *)(this + 8) = *(undefined8 *)(param_1 + 8);\n      *(undefined8 *)(this + 0x10) = *(undefined8 *)(param_1 + 0x10);\n    }\n    else {\n      *(__sso_string **)this = __src;\n      uVar1 = *(undefined8 *)(this + 0x10);\n      *(undefined8 *)(this + 8) = *(undefined8 *)(param_1 + 8);\n      *(undefined8 *)(this + 0x10) = *(undefined8 *)(param_1 + 0x10);\n      if (__dest != (__sso_string *)0x0) {\n        *(__sso_string **)param_1 = __dest;\n        *(undefined8 *)(param_1 + 0x10) = uVar1;\n        p_Var2 = __dest;\n        goto LAB_00336718;\n      }\n    }\n    *(__sso_string **)param_1 = p_Var2;\n  }\nLAB_00336718:\n  *(undefined8 *)(param_1 + 8) = 0;\n  *p_Var2 = (__sso_string)0x0;\n  return this;\n}\n\n" comment (ERROR "__sso_string * __thiscall std::__sso_string::operator=(__sso_string *this,__sso_string *param_1)" (binary_expression "__sso_string * __thiscall std::__sso_string::operator=(__sso_string *this,__sso_string *param_1)" identifier * (assignment_expression "__thiscall std::__sso_string::operator=(__sso_string *this,__sso_string *param_1)" identifier (ERROR "std::__sso_string::operator" identifier : : identifier : : identifier) = (parenthesized_expression "(__sso_string *this,__sso_string *param_1)" ( (comma_expression "__sso_string *this,__sso_string *param_1" (binary_expression "__sso_string *this" identifier * identifier) , (binary_expression "__sso_string *param_1" identifier * identifier)) ))))) (compound_statement "{\n  __sso_string *__src;\n  undefined8 uVar1;\n  size_t __n;\n  __sso_string *p_Var2;\n  __sso_string *__dest;\n  \n  p_Var2 = param_1 + 0x10;\n  __src = *(__sso_string **)param_1;\n  __dest = *(__sso_string **)this;\n  if (__src == p_Var2) {\n    __n = *(size_t *)(param_1 + 8);\n    if (__n != 0) {\n      if (__n == 1) {\n        *__dest = param_1[0x10];\n        __n = *(size_t *)(param_1 + 8);\n        __dest = *(__sso_string **)this;\n      }\n      else {\n        memcpy(__dest,__src,__n);\n        __n = *(size_t *)(param_1 + 8);\n        __dest = *(__sso_string **)this;\n      }\n    }\n    *(size_t *)(this + 8) = __n;\n    __dest[__n] = (__sso_string)0x0;\n    p_Var2 = *(__sso_string **)param_1;\n  }\n  else {\n    if (__dest == this + 0x10) {\n      *(__sso_string **)this = __src;\n      *(undefined8 *)(this + 8) = *(undefined8 *)(param_1 + 8);\n      *(undefined8 *)(this + 0x10) = *(undefined8 *)(param_1 + 0x10);\n    }\n    else {\n      *(__sso_string **)this = __src;\n      uVar1 = *(undefined8 *)(this + 0x10);\n      *(undefined8 *)(this + 8) = *(undefined8 *)(param_1 + 8);\n      *(undefined8 *)(this + 0x10) = *(undefined8 *)(param_1 + 0x10);\n      if (__dest != (__sso_string *)0x0) {\n        *(__sso_string **)param_1 = __dest;\n        *(undefined8 *)(param_1 + 0x10) = uVar1;\n        p_Var2 = __dest;\n        goto LAB_00336718;\n      }\n    }\n    *(__sso_string **)param_1 = p_Var2;\n  }\nLAB_00336718:\n  *(undefined8 *)(param_1 + 8) = 0;\n  *p_Var2 = (__sso_string)0x0;\n  return this;\n}" { (declaration "__sso_string *__src;" type_identifier (pointer_declarator "*__src" * identifier) ;) (declaration "undefined8 uVar1;" type_identifier identifier ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "__sso_string *p_Var2;" type_identifier (pointer_declarator "*p_Var2" * identifier) ;) (declaration "__sso_string *__dest;" type_identifier (pointer_declarator "*__dest" * identifier) ;) (expression_statement "p_Var2 = param_1 + 0x10;" (assignment_expression "p_Var2 = param_1 + 0x10" identifier = (binary_expression "param_1 + 0x10" identifier + number_literal)) ;) (expression_statement "__src = *(__sso_string **)param_1;" (assignment_expression "__src = *(__sso_string **)param_1" identifier = (pointer_expression "*(__sso_string **)param_1" * (cast_expression "(__sso_string **)param_1" ( (type_descriptor "__sso_string **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "__dest = *(__sso_string **)this;" (assignment_expression "__dest = *(__sso_string **)this" identifier = (pointer_expression "*(__sso_string **)this" * (cast_expression "(__sso_string **)this" ( (type_descriptor "__sso_string **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if (__src == p_Var2) {\n    __n = *(size_t *)(param_1 + 8);\n    if (__n != 0) {\n      if (__n == 1) {\n        *__dest = param_1[0x10];\n        __n = *(size_t *)(param_1 + 8);\n        __dest = *(__sso_string **)this;\n      }\n      else {\n        memcpy(__dest,__src,__n);\n        __n = *(size_t *)(param_1 + 8);\n        __dest = *(__sso_string **)this;\n      }\n    }\n    *(size_t *)(this + 8) = __n;\n    __dest[__n] = (__sso_string)0x0;\n    p_Var2 = *(__sso_string **)param_1;\n  }\n  else {\n    if (__dest == this + 0x10) {\n      *(__sso_string **)this = __src;\n      *(undefined8 *)(this + 8) = *(undefined8 *)(param_1 + 8);\n      *(undefined8 *)(this + 0x10) = *(undefined8 *)(param_1 + 0x10);\n    }\n    else {\n      *(__sso_string **)this = __src;\n      uVar1 = *(undefined8 *)(this + 0x10);\n      *(undefined8 *)(this + 8) = *(undefined8 *)(param_1 + 8);\n      *(undefined8 *)(this + 0x10) = *(undefined8 *)(param_1 + 0x10);\n      if (__dest != (__sso_string *)0x0) {\n        *(__sso_string **)param_1 = __dest;\n        *(undefined8 *)(param_1 + 0x10) = uVar1;\n        p_Var2 = __dest;\n        goto LAB_00336718;\n      }\n    }\n    *(__sso_string **)param_1 = p_Var2;\n  }" if (parenthesized_expression "(__src == p_Var2)" ( (binary_expression "__src == p_Var2" identifier == identifier) )) (compound_statement "{\n    __n = *(size_t *)(param_1 + 8);\n    if (__n != 0) {\n      if (__n == 1) {\n        *__dest = param_1[0x10];\n        __n = *(size_t *)(param_1 + 8);\n        __dest = *(__sso_string **)this;\n      }\n      else {\n        memcpy(__dest,__src,__n);\n        __n = *(size_t *)(param_1 + 8);\n        __dest = *(__sso_string **)this;\n      }\n    }\n    *(size_t *)(this + 8) = __n;\n    __dest[__n] = (__sso_string)0x0;\n    p_Var2 = *(__sso_string **)param_1;\n  }" { (expression_statement "__n = *(size_t *)(param_1 + 8);" (assignment_expression "__n = *(size_t *)(param_1 + 8)" identifier = (pointer_expression "*(size_t *)(param_1 + 8)" * (cast_expression "(size_t *)(param_1 + 8)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (if_statement "if (__n != 0) {\n      if (__n == 1) {\n        *__dest = param_1[0x10];\n        __n = *(size_t *)(param_1 + 8);\n        __dest = *(__sso_string **)this;\n      }\n      else {\n        memcpy(__dest,__src,__n);\n        __n = *(size_t *)(param_1 + 8);\n        __dest = *(__sso_string **)this;\n      }\n    }" if (parenthesized_expression "(__n != 0)" ( (binary_expression "__n != 0" identifier != number_literal) )) (compound_statement "{\n      if (__n == 1) {\n        *__dest = param_1[0x10];\n        __n = *(size_t *)(param_1 + 8);\n        __dest = *(__sso_string **)this;\n      }\n      else {\n        memcpy(__dest,__src,__n);\n        __n = *(size_t *)(param_1 + 8);\n        __dest = *(__sso_string **)this;\n      }\n    }" { (if_statement "if (__n == 1) {\n        *__dest = param_1[0x10];\n        __n = *(size_t *)(param_1 + 8);\n        __dest = *(__sso_string **)this;\n      }\n      else {\n        memcpy(__dest,__src,__n);\n        __n = *(size_t *)(param_1 + 8);\n        __dest = *(__sso_string **)this;\n      }" if (parenthesized_expression "(__n == 1)" ( (binary_expression "__n == 1" identifier == number_literal) )) (compound_statement "{\n        *__dest = param_1[0x10];\n        __n = *(size_t *)(param_1 + 8);\n        __dest = *(__sso_string **)this;\n      }" { (expression_statement "*__dest = param_1[0x10];" (assignment_expression "*__dest = param_1[0x10]" (pointer_expression "*__dest" * identifier) = (subscript_expression "param_1[0x10]" identifier [ number_literal ])) ;) (expression_statement "__n = *(size_t *)(param_1 + 8);" (assignment_expression "__n = *(size_t *)(param_1 + 8)" identifier = (pointer_expression "*(size_t *)(param_1 + 8)" * (cast_expression "(size_t *)(param_1 + 8)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "__dest = *(__sso_string **)this;" (assignment_expression "__dest = *(__sso_string **)this" identifier = (pointer_expression "*(__sso_string **)this" * (cast_expression "(__sso_string **)this" ( (type_descriptor "__sso_string **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) }) (else_clause "else {\n        memcpy(__dest,__src,__n);\n        __n = *(size_t *)(param_1 + 8);\n        __dest = *(__sso_string **)this;\n      }" else (compound_statement "{\n        memcpy(__dest,__src,__n);\n        __n = *(size_t *)(param_1 + 8);\n        __dest = *(__sso_string **)this;\n      }" { (expression_statement "memcpy(__dest,__src,__n);" (call_expression "memcpy(__dest,__src,__n)" identifier (argument_list "(__dest,__src,__n)" ( identifier , identifier , identifier ))) ;) (expression_statement "__n = *(size_t *)(param_1 + 8);" (assignment_expression "__n = *(size_t *)(param_1 + 8)" identifier = (pointer_expression "*(size_t *)(param_1 + 8)" * (cast_expression "(size_t *)(param_1 + 8)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "__dest = *(__sso_string **)this;" (assignment_expression "__dest = *(__sso_string **)this" identifier = (pointer_expression "*(__sso_string **)this" * (cast_expression "(__sso_string **)this" ( (type_descriptor "__sso_string **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) }))) })) (expression_statement "*(size_t *)(this + 8) = __n;" (assignment_expression "*(size_t *)(this + 8) = __n" (pointer_expression "*(size_t *)(this + 8)" * (cast_expression "(size_t *)(this + 8)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "__dest[__n] = (__sso_string)0x0;" (assignment_expression "__dest[__n] = (__sso_string)0x0" (subscript_expression "__dest[__n]" identifier [ identifier ]) = (cast_expression "(__sso_string)0x0" ( (type_descriptor "__sso_string" type_identifier) ) number_literal)) ;) (expression_statement "p_Var2 = *(__sso_string **)param_1;" (assignment_expression "p_Var2 = *(__sso_string **)param_1" identifier = (pointer_expression "*(__sso_string **)param_1" * (cast_expression "(__sso_string **)param_1" ( (type_descriptor "__sso_string **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) }) (else_clause "else {\n    if (__dest == this + 0x10) {\n      *(__sso_string **)this = __src;\n      *(undefined8 *)(this + 8) = *(undefined8 *)(param_1 + 8);\n      *(undefined8 *)(this + 0x10) = *(undefined8 *)(param_1 + 0x10);\n    }\n    else {\n      *(__sso_string **)this = __src;\n      uVar1 = *(undefined8 *)(this + 0x10);\n      *(undefined8 *)(this + 8) = *(undefined8 *)(param_1 + 8);\n      *(undefined8 *)(this + 0x10) = *(undefined8 *)(param_1 + 0x10);\n      if (__dest != (__sso_string *)0x0) {\n        *(__sso_string **)param_1 = __dest;\n        *(undefined8 *)(param_1 + 0x10) = uVar1;\n        p_Var2 = __dest;\n        goto LAB_00336718;\n      }\n    }\n    *(__sso_string **)param_1 = p_Var2;\n  }" else (compound_statement "{\n    if (__dest == this + 0x10) {\n      *(__sso_string **)this = __src;\n      *(undefined8 *)(this + 8) = *(undefined8 *)(param_1 + 8);\n      *(undefined8 *)(this + 0x10) = *(undefined8 *)(param_1 + 0x10);\n    }\n    else {\n      *(__sso_string **)this = __src;\n      uVar1 = *(undefined8 *)(this + 0x10);\n      *(undefined8 *)(this + 8) = *(undefined8 *)(param_1 + 8);\n      *(undefined8 *)(this + 0x10) = *(undefined8 *)(param_1 + 0x10);\n      if (__dest != (__sso_string *)0x0) {\n        *(__sso_string **)param_1 = __dest;\n        *(undefined8 *)(param_1 + 0x10) = uVar1;\n        p_Var2 = __dest;\n        goto LAB_00336718;\n      }\n    }\n    *(__sso_string **)param_1 = p_Var2;\n  }" { (if_statement "if (__dest == this + 0x10) {\n      *(__sso_string **)this = __src;\n      *(undefined8 *)(this + 8) = *(undefined8 *)(param_1 + 8);\n      *(undefined8 *)(this + 0x10) = *(undefined8 *)(param_1 + 0x10);\n    }\n    else {\n      *(__sso_string **)this = __src;\n      uVar1 = *(undefined8 *)(this + 0x10);\n      *(undefined8 *)(this + 8) = *(undefined8 *)(param_1 + 8);\n      *(undefined8 *)(this + 0x10) = *(undefined8 *)(param_1 + 0x10);\n      if (__dest != (__sso_string *)0x0) {\n        *(__sso_string **)param_1 = __dest;\n        *(undefined8 *)(param_1 + 0x10) = uVar1;\n        p_Var2 = __dest;\n        goto LAB_00336718;\n      }\n    }" if (parenthesized_expression "(__dest == this + 0x10)" ( (binary_expression "__dest == this + 0x10" identifier == (binary_expression "this + 0x10" identifier + number_literal)) )) (compound_statement "{\n      *(__sso_string **)this = __src;\n      *(undefined8 *)(this + 8) = *(undefined8 *)(param_1 + 8);\n      *(undefined8 *)(this + 0x10) = *(undefined8 *)(param_1 + 0x10);\n    }" { (expression_statement "*(__sso_string **)this = __src;" (assignment_expression "*(__sso_string **)this = __src" (pointer_expression "*(__sso_string **)this" * (cast_expression "(__sso_string **)this" ( (type_descriptor "__sso_string **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) (expression_statement "*(undefined8 *)(this + 8) = *(undefined8 *)(param_1 + 8);" (assignment_expression "*(undefined8 *)(this + 8) = *(undefined8 *)(param_1 + 8)" (pointer_expression "*(undefined8 *)(this + 8)" * (cast_expression "(undefined8 *)(this + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) = (pointer_expression "*(undefined8 *)(param_1 + 8)" * (cast_expression "(undefined8 *)(param_1 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "*(undefined8 *)(this + 0x10) = *(undefined8 *)(param_1 + 0x10);" (assignment_expression "*(undefined8 *)(this + 0x10) = *(undefined8 *)(param_1 + 0x10)" (pointer_expression "*(undefined8 *)(this + 0x10)" * (cast_expression "(undefined8 *)(this + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) )))) = (pointer_expression "*(undefined8 *)(param_1 + 0x10)" * (cast_expression "(undefined8 *)(param_1 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) }) (else_clause "else {\n      *(__sso_string **)this = __src;\n      uVar1 = *(undefined8 *)(this + 0x10);\n      *(undefined8 *)(this + 8) = *(undefined8 *)(param_1 + 8);\n      *(undefined8 *)(this + 0x10) = *(undefined8 *)(param_1 + 0x10);\n      if (__dest != (__sso_string *)0x0) {\n        *(__sso_string **)param_1 = __dest;\n        *(undefined8 *)(param_1 + 0x10) = uVar1;\n        p_Var2 = __dest;\n        goto LAB_00336718;\n      }\n    }" else (compound_statement "{\n      *(__sso_string **)this = __src;\n      uVar1 = *(undefined8 *)(this + 0x10);\n      *(undefined8 *)(this + 8) = *(undefined8 *)(param_1 + 8);\n      *(undefined8 *)(this + 0x10) = *(undefined8 *)(param_1 + 0x10);\n      if (__dest != (__sso_string *)0x0) {\n        *(__sso_string **)param_1 = __dest;\n        *(undefined8 *)(param_1 + 0x10) = uVar1;\n        p_Var2 = __dest;\n        goto LAB_00336718;\n      }\n    }" { (expression_statement "*(__sso_string **)this = __src;" (assignment_expression "*(__sso_string **)this = __src" (pointer_expression "*(__sso_string **)this" * (cast_expression "(__sso_string **)this" ( (type_descriptor "__sso_string **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) (expression_statement "uVar1 = *(undefined8 *)(this + 0x10);" (assignment_expression "uVar1 = *(undefined8 *)(this + 0x10)" identifier = (pointer_expression "*(undefined8 *)(this + 0x10)" * (cast_expression "(undefined8 *)(this + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) ))))) ;) (expression_statement "*(undefined8 *)(this + 8) = *(undefined8 *)(param_1 + 8);" (assignment_expression "*(undefined8 *)(this + 8) = *(undefined8 *)(param_1 + 8)" (pointer_expression "*(undefined8 *)(this + 8)" * (cast_expression "(undefined8 *)(this + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) = (pointer_expression "*(undefined8 *)(param_1 + 8)" * (cast_expression "(undefined8 *)(param_1 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "*(undefined8 *)(this + 0x10) = *(undefined8 *)(param_1 + 0x10);" (assignment_expression "*(undefined8 *)(this + 0x10) = *(undefined8 *)(param_1 + 0x10)" (pointer_expression "*(undefined8 *)(this + 0x10)" * (cast_expression "(undefined8 *)(this + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) )))) = (pointer_expression "*(undefined8 *)(param_1 + 0x10)" * (cast_expression "(undefined8 *)(param_1 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (if_statement "if (__dest != (__sso_string *)0x0) {\n        *(__sso_string **)param_1 = __dest;\n        *(undefined8 *)(param_1 + 0x10) = uVar1;\n        p_Var2 = __dest;\n        goto LAB_00336718;\n      }" if (parenthesized_expression "(__dest != (__sso_string *)0x0)" ( (binary_expression "__dest != (__sso_string *)0x0" identifier != (cast_expression "(__sso_string *)0x0" ( (type_descriptor "__sso_string *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        *(__sso_string **)param_1 = __dest;\n        *(undefined8 *)(param_1 + 0x10) = uVar1;\n        p_Var2 = __dest;\n        goto LAB_00336718;\n      }" { (expression_statement "*(__sso_string **)param_1 = __dest;" (assignment_expression "*(__sso_string **)param_1 = __dest" (pointer_expression "*(__sso_string **)param_1" * (cast_expression "(__sso_string **)param_1" ( (type_descriptor "__sso_string **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) (expression_statement "*(undefined8 *)(param_1 + 0x10) = uVar1;" (assignment_expression "*(undefined8 *)(param_1 + 0x10) = uVar1" (pointer_expression "*(undefined8 *)(param_1 + 0x10)" * (cast_expression "(undefined8 *)(param_1 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "p_Var2 = __dest;" (assignment_expression "p_Var2 = __dest" identifier = identifier) ;) (goto_statement "goto LAB_00336718;" goto statement_identifier ;) })) }))) (expression_statement "*(__sso_string **)param_1 = p_Var2;" (assignment_expression "*(__sso_string **)param_1 = p_Var2" (pointer_expression "*(__sso_string **)param_1" * (cast_expression "(__sso_string **)param_1" ( (type_descriptor "__sso_string **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) }))) (labeled_statement "LAB_00336718:\n  *(undefined8 *)(param_1 + 8) = 0;" statement_identifier : (expression_statement "*(undefined8 *)(param_1 + 8) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 8) = 0" (pointer_expression "*(undefined8 *)(param_1 + 8)" * (cast_expression "(undefined8 *)(param_1 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = number_literal) ;)) (expression_statement "*p_Var2 = (__sso_string)0x0;" (assignment_expression "*p_Var2 = (__sso_string)0x0" (pointer_expression "*p_Var2" * identifier) = (cast_expression "(__sso_string)0x0" ( (type_descriptor "__sso_string" type_identifier) ) number_literal)) ;) (return_statement "return this;" return identifier ;) }))
(translation_unit "undefined8 * FUN_003366d0(undefined8 *param_1,undefined8 *param_2)\n\n{\n  undefined8 *__src;\n  undefined8 uVar1;\n  size_t __n;\n  undefined8 *puVar2;\n  undefined8 *__dest;\n  \n  puVar2 = param_2 + 2;\n  __src = (undefined8 *)*param_2;\n  __dest = (undefined8 *)*param_1;\n  if (__src == puVar2) {\n    __n = param_2[1];\n    if (__n != 0) {\n      if (__n == 1) {\n        *(undefined1 *)__dest = *(undefined1 *)(param_2 + 2);\n        __n = param_2[1];\n        __dest = (undefined8 *)*param_1;\n      }\n      else {\n        memcpy(__dest,__src,__n);\n        __n = param_2[1];\n        __dest = (undefined8 *)*param_1;\n      }\n    }\n    param_1[1] = __n;\n    *(undefined1 *)((long)__dest + __n) = 0;\n    puVar2 = (undefined8 *)*param_2;\n  }\n  else {\n    if (__dest == param_1 + 2) {\n      *param_1 = __src;\n      param_1[1] = param_2[1];\n      param_1[2] = param_2[2];\n    }\n    else {\n      *param_1 = __src;\n      uVar1 = param_1[2];\n      param_1[1] = param_2[1];\n      param_1[2] = param_2[2];\n      if (__dest != (undefined8 *)0x0) {\n        *param_2 = __dest;\n        param_2[2] = uVar1;\n        puVar2 = __dest;\n        goto LAB_00336718;\n      }\n    }\n    *param_2 = puVar2;\n  }\nLAB_00336718:\n  param_2[1] = 0;\n  *(undefined1 *)puVar2 = 0;\n  return param_1;\n}\n\n" (function_definition "undefined8 * FUN_003366d0(undefined8 *param_1,undefined8 *param_2)\n\n{\n  undefined8 *__src;\n  undefined8 uVar1;\n  size_t __n;\n  undefined8 *puVar2;\n  undefined8 *__dest;\n  \n  puVar2 = param_2 + 2;\n  __src = (undefined8 *)*param_2;\n  __dest = (undefined8 *)*param_1;\n  if (__src == puVar2) {\n    __n = param_2[1];\n    if (__n != 0) {\n      if (__n == 1) {\n        *(undefined1 *)__dest = *(undefined1 *)(param_2 + 2);\n        __n = param_2[1];\n        __dest = (undefined8 *)*param_1;\n      }\n      else {\n        memcpy(__dest,__src,__n);\n        __n = param_2[1];\n        __dest = (undefined8 *)*param_1;\n      }\n    }\n    param_1[1] = __n;\n    *(undefined1 *)((long)__dest + __n) = 0;\n    puVar2 = (undefined8 *)*param_2;\n  }\n  else {\n    if (__dest == param_1 + 2) {\n      *param_1 = __src;\n      param_1[1] = param_2[1];\n      param_1[2] = param_2[2];\n    }\n    else {\n      *param_1 = __src;\n      uVar1 = param_1[2];\n      param_1[1] = param_2[1];\n      param_1[2] = param_2[2];\n      if (__dest != (undefined8 *)0x0) {\n        *param_2 = __dest;\n        param_2[2] = uVar1;\n        puVar2 = __dest;\n        goto LAB_00336718;\n      }\n    }\n    *param_2 = puVar2;\n  }\nLAB_00336718:\n  param_2[1] = 0;\n  *(undefined1 *)puVar2 = 0;\n  return param_1;\n}" type_identifier (pointer_declarator "* FUN_003366d0(undefined8 *param_1,undefined8 *param_2)" * (function_declarator "FUN_003366d0(undefined8 *param_1,undefined8 *param_2)" identifier (parameter_list "(undefined8 *param_1,undefined8 *param_2)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined8 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  undefined8 *__src;\n  undefined8 uVar1;\n  size_t __n;\n  undefined8 *puVar2;\n  undefined8 *__dest;\n  \n  puVar2 = param_2 + 2;\n  __src = (undefined8 *)*param_2;\n  __dest = (undefined8 *)*param_1;\n  if (__src == puVar2) {\n    __n = param_2[1];\n    if (__n != 0) {\n      if (__n == 1) {\n        *(undefined1 *)__dest = *(undefined1 *)(param_2 + 2);\n        __n = param_2[1];\n        __dest = (undefined8 *)*param_1;\n      }\n      else {\n        memcpy(__dest,__src,__n);\n        __n = param_2[1];\n        __dest = (undefined8 *)*param_1;\n      }\n    }\n    param_1[1] = __n;\n    *(undefined1 *)((long)__dest + __n) = 0;\n    puVar2 = (undefined8 *)*param_2;\n  }\n  else {\n    if (__dest == param_1 + 2) {\n      *param_1 = __src;\n      param_1[1] = param_2[1];\n      param_1[2] = param_2[2];\n    }\n    else {\n      *param_1 = __src;\n      uVar1 = param_1[2];\n      param_1[1] = param_2[1];\n      param_1[2] = param_2[2];\n      if (__dest != (undefined8 *)0x0) {\n        *param_2 = __dest;\n        param_2[2] = uVar1;\n        puVar2 = __dest;\n        goto LAB_00336718;\n      }\n    }\n    *param_2 = puVar2;\n  }\nLAB_00336718:\n  param_2[1] = 0;\n  *(undefined1 *)puVar2 = 0;\n  return param_1;\n}" { (declaration "undefined8 *__src;" type_identifier (pointer_declarator "*__src" * identifier) ;) (declaration "undefined8 uVar1;" type_identifier identifier ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "undefined8 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined8 *__dest;" type_identifier (pointer_declarator "*__dest" * identifier) ;) (expression_statement "puVar2 = param_2 + 2;" (assignment_expression "puVar2 = param_2 + 2" identifier = (binary_expression "param_2 + 2" identifier + number_literal)) ;) (expression_statement "__src = (undefined8 *)*param_2;" (assignment_expression "__src = (undefined8 *)*param_2" identifier = (cast_expression "(undefined8 *)*param_2" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (expression_statement "__dest = (undefined8 *)*param_1;" (assignment_expression "__dest = (undefined8 *)*param_1" identifier = (cast_expression "(undefined8 *)*param_1" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (__src == puVar2) {\n    __n = param_2[1];\n    if (__n != 0) {\n      if (__n == 1) {\n        *(undefined1 *)__dest = *(undefined1 *)(param_2 + 2);\n        __n = param_2[1];\n        __dest = (undefined8 *)*param_1;\n      }\n      else {\n        memcpy(__dest,__src,__n);\n        __n = param_2[1];\n        __dest = (undefined8 *)*param_1;\n      }\n    }\n    param_1[1] = __n;\n    *(undefined1 *)((long)__dest + __n) = 0;\n    puVar2 = (undefined8 *)*param_2;\n  }\n  else {\n    if (__dest == param_1 + 2) {\n      *param_1 = __src;\n      param_1[1] = param_2[1];\n      param_1[2] = param_2[2];\n    }\n    else {\n      *param_1 = __src;\n      uVar1 = param_1[2];\n      param_1[1] = param_2[1];\n      param_1[2] = param_2[2];\n      if (__dest != (undefined8 *)0x0) {\n        *param_2 = __dest;\n        param_2[2] = uVar1;\n        puVar2 = __dest;\n        goto LAB_00336718;\n      }\n    }\n    *param_2 = puVar2;\n  }" if (parenthesized_expression "(__src == puVar2)" ( (binary_expression "__src == puVar2" identifier == identifier) )) (compound_statement "{\n    __n = param_2[1];\n    if (__n != 0) {\n      if (__n == 1) {\n        *(undefined1 *)__dest = *(undefined1 *)(param_2 + 2);\n        __n = param_2[1];\n        __dest = (undefined8 *)*param_1;\n      }\n      else {\n        memcpy(__dest,__src,__n);\n        __n = param_2[1];\n        __dest = (undefined8 *)*param_1;\n      }\n    }\n    param_1[1] = __n;\n    *(undefined1 *)((long)__dest + __n) = 0;\n    puVar2 = (undefined8 *)*param_2;\n  }" { (expression_statement "__n = param_2[1];" (assignment_expression "__n = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (if_statement "if (__n != 0) {\n      if (__n == 1) {\n        *(undefined1 *)__dest = *(undefined1 *)(param_2 + 2);\n        __n = param_2[1];\n        __dest = (undefined8 *)*param_1;\n      }\n      else {\n        memcpy(__dest,__src,__n);\n        __n = param_2[1];\n        __dest = (undefined8 *)*param_1;\n      }\n    }" if (parenthesized_expression "(__n != 0)" ( (binary_expression "__n != 0" identifier != number_literal) )) (compound_statement "{\n      if (__n == 1) {\n        *(undefined1 *)__dest = *(undefined1 *)(param_2 + 2);\n        __n = param_2[1];\n        __dest = (undefined8 *)*param_1;\n      }\n      else {\n        memcpy(__dest,__src,__n);\n        __n = param_2[1];\n        __dest = (undefined8 *)*param_1;\n      }\n    }" { (if_statement "if (__n == 1) {\n        *(undefined1 *)__dest = *(undefined1 *)(param_2 + 2);\n        __n = param_2[1];\n        __dest = (undefined8 *)*param_1;\n      }\n      else {\n        memcpy(__dest,__src,__n);\n        __n = param_2[1];\n        __dest = (undefined8 *)*param_1;\n      }" if (parenthesized_expression "(__n == 1)" ( (binary_expression "__n == 1" identifier == number_literal) )) (compound_statement "{\n        *(undefined1 *)__dest = *(undefined1 *)(param_2 + 2);\n        __n = param_2[1];\n        __dest = (undefined8 *)*param_1;\n      }" { (expression_statement "*(undefined1 *)__dest = *(undefined1 *)(param_2 + 2);" (assignment_expression "*(undefined1 *)__dest = *(undefined1 *)(param_2 + 2)" (pointer_expression "*(undefined1 *)__dest" * (cast_expression "(undefined1 *)__dest" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (pointer_expression "*(undefined1 *)(param_2 + 2)" * (cast_expression "(undefined1 *)(param_2 + 2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 2)" ( (binary_expression "param_2 + 2" identifier + number_literal) ))))) ;) (expression_statement "__n = param_2[1];" (assignment_expression "__n = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "__dest = (undefined8 *)*param_1;" (assignment_expression "__dest = (undefined8 *)*param_1" identifier = (cast_expression "(undefined8 *)*param_1" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) }) (else_clause "else {\n        memcpy(__dest,__src,__n);\n        __n = param_2[1];\n        __dest = (undefined8 *)*param_1;\n      }" else (compound_statement "{\n        memcpy(__dest,__src,__n);\n        __n = param_2[1];\n        __dest = (undefined8 *)*param_1;\n      }" { (expression_statement "memcpy(__dest,__src,__n);" (call_expression "memcpy(__dest,__src,__n)" identifier (argument_list "(__dest,__src,__n)" ( identifier , identifier , identifier ))) ;) (expression_statement "__n = param_2[1];" (assignment_expression "__n = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "__dest = (undefined8 *)*param_1;" (assignment_expression "__dest = (undefined8 *)*param_1" identifier = (cast_expression "(undefined8 *)*param_1" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) }))) })) (expression_statement "param_1[1] = __n;" (assignment_expression "param_1[1] = __n" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined1 *)((long)__dest + __n) = 0;" (assignment_expression "*(undefined1 *)((long)__dest + __n) = 0" (pointer_expression "*(undefined1 *)((long)__dest + __n)" * (cast_expression "(undefined1 *)((long)__dest + __n)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)__dest + __n)" ( (binary_expression "(long)__dest + __n" (cast_expression "(long)__dest" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier) )))) = number_literal) ;) (expression_statement "puVar2 = (undefined8 *)*param_2;" (assignment_expression "puVar2 = (undefined8 *)*param_2" identifier = (cast_expression "(undefined8 *)*param_2" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) }) (else_clause "else {\n    if (__dest == param_1 + 2) {\n      *param_1 = __src;\n      param_1[1] = param_2[1];\n      param_1[2] = param_2[2];\n    }\n    else {\n      *param_1 = __src;\n      uVar1 = param_1[2];\n      param_1[1] = param_2[1];\n      param_1[2] = param_2[2];\n      if (__dest != (undefined8 *)0x0) {\n        *param_2 = __dest;\n        param_2[2] = uVar1;\n        puVar2 = __dest;\n        goto LAB_00336718;\n      }\n    }\n    *param_2 = puVar2;\n  }" else (compound_statement "{\n    if (__dest == param_1 + 2) {\n      *param_1 = __src;\n      param_1[1] = param_2[1];\n      param_1[2] = param_2[2];\n    }\n    else {\n      *param_1 = __src;\n      uVar1 = param_1[2];\n      param_1[1] = param_2[1];\n      param_1[2] = param_2[2];\n      if (__dest != (undefined8 *)0x0) {\n        *param_2 = __dest;\n        param_2[2] = uVar1;\n        puVar2 = __dest;\n        goto LAB_00336718;\n      }\n    }\n    *param_2 = puVar2;\n  }" { (if_statement "if (__dest == param_1 + 2) {\n      *param_1 = __src;\n      param_1[1] = param_2[1];\n      param_1[2] = param_2[2];\n    }\n    else {\n      *param_1 = __src;\n      uVar1 = param_1[2];\n      param_1[1] = param_2[1];\n      param_1[2] = param_2[2];\n      if (__dest != (undefined8 *)0x0) {\n        *param_2 = __dest;\n        param_2[2] = uVar1;\n        puVar2 = __dest;\n        goto LAB_00336718;\n      }\n    }" if (parenthesized_expression "(__dest == param_1 + 2)" ( (binary_expression "__dest == param_1 + 2" identifier == (binary_expression "param_1 + 2" identifier + number_literal)) )) (compound_statement "{\n      *param_1 = __src;\n      param_1[1] = param_2[1];\n      param_1[2] = param_2[2];\n    }" { (expression_statement "*param_1 = __src;" (assignment_expression "*param_1 = __src" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[1] = param_2[1];" (assignment_expression "param_1[1] = param_2[1]" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "param_1[2] = param_2[2];" (assignment_expression "param_1[2] = param_2[2]" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) }) (else_clause "else {\n      *param_1 = __src;\n      uVar1 = param_1[2];\n      param_1[1] = param_2[1];\n      param_1[2] = param_2[2];\n      if (__dest != (undefined8 *)0x0) {\n        *param_2 = __dest;\n        param_2[2] = uVar1;\n        puVar2 = __dest;\n        goto LAB_00336718;\n      }\n    }" else (compound_statement "{\n      *param_1 = __src;\n      uVar1 = param_1[2];\n      param_1[1] = param_2[1];\n      param_1[2] = param_2[2];\n      if (__dest != (undefined8 *)0x0) {\n        *param_2 = __dest;\n        param_2[2] = uVar1;\n        puVar2 = __dest;\n        goto LAB_00336718;\n      }\n    }" { (expression_statement "*param_1 = __src;" (assignment_expression "*param_1 = __src" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "uVar1 = param_1[2];" (assignment_expression "uVar1 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "param_1[1] = param_2[1];" (assignment_expression "param_1[1] = param_2[1]" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "param_1[2] = param_2[2];" (assignment_expression "param_1[2] = param_2[2]" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) (if_statement "if (__dest != (undefined8 *)0x0) {\n        *param_2 = __dest;\n        param_2[2] = uVar1;\n        puVar2 = __dest;\n        goto LAB_00336718;\n      }" if (parenthesized_expression "(__dest != (undefined8 *)0x0)" ( (binary_expression "__dest != (undefined8 *)0x0" identifier != (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        *param_2 = __dest;\n        param_2[2] = uVar1;\n        puVar2 = __dest;\n        goto LAB_00336718;\n      }" { (expression_statement "*param_2 = __dest;" (assignment_expression "*param_2 = __dest" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "param_2[2] = uVar1;" (assignment_expression "param_2[2] = uVar1" (subscript_expression "param_2[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2 = __dest;" (assignment_expression "puVar2 = __dest" identifier = identifier) ;) (goto_statement "goto LAB_00336718;" goto statement_identifier ;) })) }))) (expression_statement "*param_2 = puVar2;" (assignment_expression "*param_2 = puVar2" (pointer_expression "*param_2" * identifier) = identifier) ;) }))) (labeled_statement "LAB_00336718:\n  param_2[1] = 0;" statement_identifier : (expression_statement "param_2[1] = 0;" (assignment_expression "param_2[1] = 0" (subscript_expression "param_2[1]" identifier [ number_literal ]) = number_literal) ;)) (expression_statement "*(undefined1 *)puVar2 = 0;" (assignment_expression "*(undefined1 *)puVar2 = 0" (pointer_expression "*(undefined1 *)puVar2" * (cast_expression "(undefined1 *)puVar2" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (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 * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) }))) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + IDENT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (binary_expression IDENT + LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression 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 (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (goto_statement goto statement_identifier ;) })) }))) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) }))) (labeled_statement statement_identifier : (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;)) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = LIT) ;) (return_statement return IDENT ;) })))
(function_definition "undefined8 * FUN_003366d0(undefined8 *param_1,undefined8 *param_2)\n\n{\n  undefined8 *__src;\n  undefined8 uVar1;\n  size_t __n;\n  undefined8 *puVar2;\n  undefined8 *__dest;\n  \n  puVar2 = param_2 + 2;\n  __src = (undefined8 *)*param_2;\n  __dest = (undefined8 *)*param_1;\n  if (__src == puVar2) {\n    __n = param_2[1];\n    if (__n != 0) {\n      if (__n == 1) {\n        *(undefined1 *)__dest = *(undefined1 *)(param_2 + 2);\n        __n = param_2[1];\n        __dest = (undefined8 *)*param_1;\n      }\n      else {\n        memcpy(__dest,__src,__n);\n        __n = param_2[1];\n        __dest = (undefined8 *)*param_1;\n      }\n    }\n    param_1[1] = __n;\n    *(undefined1 *)((long)__dest + __n) = 0;\n    puVar2 = (undefined8 *)*param_2;\n  }\n  else {\n    if (__dest == param_1 + 2) {\n      *param_1 = __src;\n      param_1[1] = param_2[1];\n      param_1[2] = param_2[2];\n    }\n    else {\n      *param_1 = __src;\n      uVar1 = param_1[2];\n      param_1[1] = param_2[1];\n      param_1[2] = param_2[2];\n      if (__dest != (undefined8 *)0x0) {\n        *param_2 = __dest;\n        param_2[2] = uVar1;\n        puVar2 = __dest;\n        goto LAB_00336718;\n      }\n    }\n    *param_2 = puVar2;\n  }\nLAB_00336718:\n  param_2[1] = 0;\n  *(undefined1 *)puVar2 = 0;\n  return param_1;\n}" (type_identifier "undefined8") (pointer_declarator "* FUN_003366d0(undefined8 *param_1,undefined8 *param_2)" (* "*") (function_declarator "FUN_003366d0(undefined8 *param_1,undefined8 *param_2)" (identifier "FUN_003366d0") (parameter_list "(undefined8 *param_1,undefined8 *param_2)" (( "(") (parameter_declaration "undefined8 *param_1" (type_identifier "undefined8") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined8 *param_2" (type_identifier "undefined8") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")")))) (compound_statement "{\n  undefined8 *__src;\n  undefined8 uVar1;\n  size_t __n;\n  undefined8 *puVar2;\n  undefined8 *__dest;\n  \n  puVar2 = param_2 + 2;\n  __src = (undefined8 *)*param_2;\n  __dest = (undefined8 *)*param_1;\n  if (__src == puVar2) {\n    __n = param_2[1];\n    if (__n != 0) {\n      if (__n == 1) {\n        *(undefined1 *)__dest = *(undefined1 *)(param_2 + 2);\n        __n = param_2[1];\n        __dest = (undefined8 *)*param_1;\n      }\n      else {\n        memcpy(__dest,__src,__n);\n        __n = param_2[1];\n        __dest = (undefined8 *)*param_1;\n      }\n    }\n    param_1[1] = __n;\n    *(undefined1 *)((long)__dest + __n) = 0;\n    puVar2 = (undefined8 *)*param_2;\n  }\n  else {\n    if (__dest == param_1 + 2) {\n      *param_1 = __src;\n      param_1[1] = param_2[1];\n      param_1[2] = param_2[2];\n    }\n    else {\n      *param_1 = __src;\n      uVar1 = param_1[2];\n      param_1[1] = param_2[1];\n      param_1[2] = param_2[2];\n      if (__dest != (undefined8 *)0x0) {\n        *param_2 = __dest;\n        param_2[2] = uVar1;\n        puVar2 = __dest;\n        goto LAB_00336718;\n      }\n    }\n    *param_2 = puVar2;\n  }\nLAB_00336718:\n  param_2[1] = 0;\n  *(undefined1 *)puVar2 = 0;\n  return param_1;\n}" ({ "{") (declaration "undefined8 *__src;" (type_identifier "undefined8") (pointer_declarator "*__src" (* "*") (identifier "__src")) (; ";")) (declaration "undefined8 uVar1;" (type_identifier "undefined8") (identifier "uVar1") (; ";")) (declaration "size_t __n;" (primitive_type "size_t") (identifier "__n") (; ";")) (declaration "undefined8 *puVar2;" (type_identifier "undefined8") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined8 *__dest;" (type_identifier "undefined8") (pointer_declarator "*__dest" (* "*") (identifier "__dest")) (; ";")) (expression_statement "puVar2 = param_2 + 2;" (assignment_expression "puVar2 = param_2 + 2" (identifier "puVar2") (= "=") (binary_expression "param_2 + 2" (identifier "param_2") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "__src = (undefined8 *)*param_2;" (assignment_expression "__src = (undefined8 *)*param_2" (identifier "__src") (= "=") (cast_expression "(undefined8 *)*param_2" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (; ";")) (expression_statement "__dest = (undefined8 *)*param_1;" (assignment_expression "__dest = (undefined8 *)*param_1" (identifier "__dest") (= "=") (cast_expression "(undefined8 *)*param_1" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (if_statement "if (__src == puVar2) {\n    __n = param_2[1];\n    if (__n != 0) {\n      if (__n == 1) {\n        *(undefined1 *)__dest = *(undefined1 *)(param_2 + 2);\n        __n = param_2[1];\n        __dest = (undefined8 *)*param_1;\n      }\n      else {\n        memcpy(__dest,__src,__n);\n        __n = param_2[1];\n        __dest = (undefined8 *)*param_1;\n      }\n    }\n    param_1[1] = __n;\n    *(undefined1 *)((long)__dest + __n) = 0;\n    puVar2 = (undefined8 *)*param_2;\n  }\n  else {\n    if (__dest == param_1 + 2) {\n      *param_1 = __src;\n      param_1[1] = param_2[1];\n      param_1[2] = param_2[2];\n    }\n    else {\n      *param_1 = __src;\n      uVar1 = param_1[2];\n      param_1[1] = param_2[1];\n      param_1[2] = param_2[2];\n      if (__dest != (undefined8 *)0x0) {\n        *param_2 = __dest;\n        param_2[2] = uVar1;\n        puVar2 = __dest;\n        goto LAB_00336718;\n      }\n    }\n    *param_2 = puVar2;\n  }" (if "if") (parenthesized_expression "(__src == puVar2)" (( "(") (binary_expression "__src == puVar2" (identifier "__src") (== "==") (identifier "puVar2")) () ")")) (compound_statement "{\n    __n = param_2[1];\n    if (__n != 0) {\n      if (__n == 1) {\n        *(undefined1 *)__dest = *(undefined1 *)(param_2 + 2);\n        __n = param_2[1];\n        __dest = (undefined8 *)*param_1;\n      }\n      else {\n        memcpy(__dest,__src,__n);\n        __n = param_2[1];\n        __dest = (undefined8 *)*param_1;\n      }\n    }\n    param_1[1] = __n;\n    *(undefined1 *)((long)__dest + __n) = 0;\n    puVar2 = (undefined8 *)*param_2;\n  }" ({ "{") (expression_statement "__n = param_2[1];" (assignment_expression "__n = param_2[1]" (identifier "__n") (= "=") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (if_statement "if (__n != 0) {\n      if (__n == 1) {\n        *(undefined1 *)__dest = *(undefined1 *)(param_2 + 2);\n        __n = param_2[1];\n        __dest = (undefined8 *)*param_1;\n      }\n      else {\n        memcpy(__dest,__src,__n);\n        __n = param_2[1];\n        __dest = (undefined8 *)*param_1;\n      }\n    }" (if "if") (parenthesized_expression "(__n != 0)" (( "(") (binary_expression "__n != 0" (identifier "__n") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      if (__n == 1) {\n        *(undefined1 *)__dest = *(undefined1 *)(param_2 + 2);\n        __n = param_2[1];\n        __dest = (undefined8 *)*param_1;\n      }\n      else {\n        memcpy(__dest,__src,__n);\n        __n = param_2[1];\n        __dest = (undefined8 *)*param_1;\n      }\n    }" ({ "{") (if_statement "if (__n == 1) {\n        *(undefined1 *)__dest = *(undefined1 *)(param_2 + 2);\n        __n = param_2[1];\n        __dest = (undefined8 *)*param_1;\n      }\n      else {\n        memcpy(__dest,__src,__n);\n        __n = param_2[1];\n        __dest = (undefined8 *)*param_1;\n      }" (if "if") (parenthesized_expression "(__n == 1)" (( "(") (binary_expression "__n == 1" (identifier "__n") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n        *(undefined1 *)__dest = *(undefined1 *)(param_2 + 2);\n        __n = param_2[1];\n        __dest = (undefined8 *)*param_1;\n      }" ({ "{") (expression_statement "*(undefined1 *)__dest = *(undefined1 *)(param_2 + 2);" (assignment_expression "*(undefined1 *)__dest = *(undefined1 *)(param_2 + 2)" (pointer_expression "*(undefined1 *)__dest" (* "*") (cast_expression "(undefined1 *)__dest" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "__dest"))) (= "=") (pointer_expression "*(undefined1 *)(param_2 + 2)" (* "*") (cast_expression "(undefined1 *)(param_2 + 2)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 2)" (( "(") (binary_expression "param_2 + 2" (identifier "param_2") (+ "+") (number_literal "2")) () ")"))))) (; ";")) (expression_statement "__n = param_2[1];" (assignment_expression "__n = param_2[1]" (identifier "__n") (= "=") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "__dest = (undefined8 *)*param_1;" (assignment_expression "__dest = (undefined8 *)*param_1" (identifier "__dest") (= "=") (cast_expression "(undefined8 *)*param_1" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (} "}")) (else_clause "else {\n        memcpy(__dest,__src,__n);\n        __n = param_2[1];\n        __dest = (undefined8 *)*param_1;\n      }" (else "else") (compound_statement "{\n        memcpy(__dest,__src,__n);\n        __n = param_2[1];\n        __dest = (undefined8 *)*param_1;\n      }" ({ "{") (expression_statement "memcpy(__dest,__src,__n);" (call_expression "memcpy(__dest,__src,__n)" (identifier "memcpy") (argument_list "(__dest,__src,__n)" (( "(") (identifier "__dest") (, ",") (identifier "__src") (, ",") (identifier "__n") () ")"))) (; ";")) (expression_statement "__n = param_2[1];" (assignment_expression "__n = param_2[1]" (identifier "__n") (= "=") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "__dest = (undefined8 *)*param_1;" (assignment_expression "__dest = (undefined8 *)*param_1" (identifier "__dest") (= "=") (cast_expression "(undefined8 *)*param_1" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (} "}")))) (} "}"))) (expression_statement "param_1[1] = __n;" (assignment_expression "param_1[1] = __n" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "__n")) (; ";")) (expression_statement "*(undefined1 *)((long)__dest + __n) = 0;" (assignment_expression "*(undefined1 *)((long)__dest + __n) = 0" (pointer_expression "*(undefined1 *)((long)__dest + __n)" (* "*") (cast_expression "(undefined1 *)((long)__dest + __n)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)__dest + __n)" (( "(") (binary_expression "(long)__dest + __n" (cast_expression "(long)__dest" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "__dest")) (+ "+") (identifier "__n")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2 = (undefined8 *)*param_2;" (assignment_expression "puVar2 = (undefined8 *)*param_2" (identifier "puVar2") (= "=") (cast_expression "(undefined8 *)*param_2" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (; ";")) (} "}")) (else_clause "else {\n    if (__dest == param_1 + 2) {\n      *param_1 = __src;\n      param_1[1] = param_2[1];\n      param_1[2] = param_2[2];\n    }\n    else {\n      *param_1 = __src;\n      uVar1 = param_1[2];\n      param_1[1] = param_2[1];\n      param_1[2] = param_2[2];\n      if (__dest != (undefined8 *)0x0) {\n        *param_2 = __dest;\n        param_2[2] = uVar1;\n        puVar2 = __dest;\n        goto LAB_00336718;\n      }\n    }\n    *param_2 = puVar2;\n  }" (else "else") (compound_statement "{\n    if (__dest == param_1 + 2) {\n      *param_1 = __src;\n      param_1[1] = param_2[1];\n      param_1[2] = param_2[2];\n    }\n    else {\n      *param_1 = __src;\n      uVar1 = param_1[2];\n      param_1[1] = param_2[1];\n      param_1[2] = param_2[2];\n      if (__dest != (undefined8 *)0x0) {\n        *param_2 = __dest;\n        param_2[2] = uVar1;\n        puVar2 = __dest;\n        goto LAB_00336718;\n      }\n    }\n    *param_2 = puVar2;\n  }" ({ "{") (if_statement "if (__dest == param_1 + 2) {\n      *param_1 = __src;\n      param_1[1] = param_2[1];\n      param_1[2] = param_2[2];\n    }\n    else {\n      *param_1 = __src;\n      uVar1 = param_1[2];\n      param_1[1] = param_2[1];\n      param_1[2] = param_2[2];\n      if (__dest != (undefined8 *)0x0) {\n        *param_2 = __dest;\n        param_2[2] = uVar1;\n        puVar2 = __dest;\n        goto LAB_00336718;\n      }\n    }" (if "if") (parenthesized_expression "(__dest == param_1 + 2)" (( "(") (binary_expression "__dest == param_1 + 2" (identifier "__dest") (== "==") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2"))) () ")")) (compound_statement "{\n      *param_1 = __src;\n      param_1[1] = param_2[1];\n      param_1[2] = param_2[2];\n    }" ({ "{") (expression_statement "*param_1 = __src;" (assignment_expression "*param_1 = __src" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "__src")) (; ";")) (expression_statement "param_1[1] = param_2[1];" (assignment_expression "param_1[1] = param_2[1]" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "param_1[2] = param_2[2];" (assignment_expression "param_1[2] = param_2[2]" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]"))) (; ";")) (} "}")) (else_clause "else {\n      *param_1 = __src;\n      uVar1 = param_1[2];\n      param_1[1] = param_2[1];\n      param_1[2] = param_2[2];\n      if (__dest != (undefined8 *)0x0) {\n        *param_2 = __dest;\n        param_2[2] = uVar1;\n        puVar2 = __dest;\n        goto LAB_00336718;\n      }\n    }" (else "else") (compound_statement "{\n      *param_1 = __src;\n      uVar1 = param_1[2];\n      param_1[1] = param_2[1];\n      param_1[2] = param_2[2];\n      if (__dest != (undefined8 *)0x0) {\n        *param_2 = __dest;\n        param_2[2] = uVar1;\n        puVar2 = __dest;\n        goto LAB_00336718;\n      }\n    }" ({ "{") (expression_statement "*param_1 = __src;" (assignment_expression "*param_1 = __src" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "__src")) (; ";")) (expression_statement "uVar1 = param_1[2];" (assignment_expression "uVar1 = param_1[2]" (identifier "uVar1") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "param_1[1] = param_2[1];" (assignment_expression "param_1[1] = param_2[1]" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "param_1[2] = param_2[2];" (assignment_expression "param_1[2] = param_2[2]" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]"))) (; ";")) (if_statement "if (__dest != (undefined8 *)0x0) {\n        *param_2 = __dest;\n        param_2[2] = uVar1;\n        puVar2 = __dest;\n        goto LAB_00336718;\n      }" (if "if") (parenthesized_expression "(__dest != (undefined8 *)0x0)" (( "(") (binary_expression "__dest != (undefined8 *)0x0" (identifier "__dest") (!= "!=") (cast_expression "(undefined8 *)0x0" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        *param_2 = __dest;\n        param_2[2] = uVar1;\n        puVar2 = __dest;\n        goto LAB_00336718;\n      }" ({ "{") (expression_statement "*param_2 = __dest;" (assignment_expression "*param_2 = __dest" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "__dest")) (; ";")) (expression_statement "param_2[2] = uVar1;" (assignment_expression "param_2[2] = uVar1" (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "puVar2 = __dest;" (assignment_expression "puVar2 = __dest" (identifier "puVar2") (= "=") (identifier "__dest")) (; ";")) (goto_statement "goto LAB_00336718;" (goto "goto") (statement_identifier "LAB_00336718") (; ";")) (} "}"))) (} "}")))) (expression_statement "*param_2 = puVar2;" (assignment_expression "*param_2 = puVar2" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "puVar2")) (; ";")) (} "}")))) (labeled_statement "LAB_00336718:\n  param_2[1] = 0;" (statement_identifier "LAB_00336718") (: ":") (expression_statement "param_2[1] = 0;" (assignment_expression "param_2[1] = 0" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";"))) (expression_statement "*(undefined1 *)puVar2 = 0;" (assignment_expression "*(undefined1 *)puVar2 = 0" (pointer_expression "*(undefined1 *)puVar2" (* "*") (cast_expression "(undefined1 *)puVar2" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar2"))) (= "=") (number_literal "0")) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

/* std::__sso_string::TEMPNAMEPLACEHOLDERVALUE(std::__sso_string&&) */

type_1 * __thiscall std::type_1::operator=(type_1 *var_6,type_1 *var_1)

{
  type_1 *var_2;
  type_2 uVar1;
  size_t var_4;
  type_1 *var_3;
  type_1 *var_7;
  
  var_3 = var_1 + 0x10;
  var_2 = *(type_1 **)var_1;
  var_7 = *(type_1 **)var_6;
  if (var_2 == var_3) {
    var_4 = *(size_t *)(var_1 + 8);
    if (var_4 != 0) {
      if (var_4 == 1) {
        *var_7 = var_1[0x10];
        var_4 = *(size_t *)(var_1 + 8);
        var_7 = *(type_1 **)var_6;
      }
      else {
        var_5(var_7,var_2,var_4);
        var_4 = *(size_t *)(var_1 + 8);
        var_7 = *(type_1 **)var_6;
      }
    }
    *(size_t *)(var_6 + 8) = var_4;
    var_7[var_4] = (type_1)0x0;
    var_3 = *(type_1 **)var_1;
  }
  else {
    if (var_7 == var_6 + 0x10) {
      *(type_1 **)var_6 = var_2;
      *(type_2 *)(var_6 + 8) = *(type_2 *)(var_1 + 8);
      *(type_2 *)(var_6 + 0x10) = *(type_2 *)(var_1 + 0x10);
    }
    else {
      *(type_1 **)var_6 = var_2;
      uVar1 = *(type_2 *)(var_6 + 0x10);
      *(type_2 *)(var_6 + 8) = *(type_2 *)(var_1 + 8);
      *(type_2 *)(var_6 + 0x10) = *(type_2 *)(var_1 + 0x10);
      if (var_7 != (type_1 *)0x0) {
        *(type_1 **)var_1 = var_7;
        *(type_2 *)(var_1 + 0x10) = uVar1;
        var_3 = var_7;
        goto LAB_00336718;
      }
    }
    *(type_1 **)var_1 = var_3;
  }
LAB_00336718:
  *(type_2 *)(var_1 + 8) = 0;
  *var_3 = (type_1)0x0;
  return var_6;
}


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

undefined8 * MASKED(undefined8 *param_1,undefined8 *param_2)

{
  undefined8 *__src;
  undefined8 uVar1;
  size_t __n;
  undefined8 *puVar2;
  undefined8 *__dest;
  
  puVar2 = param_2 + 2;
  __src = (undefined8 *)*param_2;
  __dest = (undefined8 *)*param_1;
  if (__src == puVar2) {
    __n = param_2[1];
    if (__n != 0) {
      if (__n == 1) {
        *(undefined1 *)__dest = *(undefined1 *)(param_2 + 2);
        __n = param_2[1];
        __dest = (undefined8 *)*param_1;
      }
      else {
        memcpy(__dest,__src,__n);
        __n = param_2[1];
        __dest = (undefined8 *)*param_1;
      }
    }
    param_1[1] = __n;
    *(undefined1 *)((long)__dest + __n) = 0;
    puVar2 = (undefined8 *)*param_2;
  }
  else {
    if (__dest == param_1 + 2) {
      *param_1 = __src;
      param_1[1] = param_2[1];
      param_1[2] = param_2[2];
    }
    else {
      *param_1 = __src;
      uVar1 = param_1[2];
      param_1[1] = param_2[1];
      param_1[2] = param_2[2];
      if (__dest != (undefined8 *)0x0) {
        *param_2 = __dest;
        param_2[2] = uVar1;
        puVar2 = __dest;
        goto LAB_00336718;
      }
    }
    *param_2 = puVar2;
  }
LAB_00336718:
  param_2[1] = 0;
  *(undefined1 *)puVar2 = 0;
  return param_1;
}

