
/* std::string::_M_assign(char*, unsigned long, char) */

void std::string::_M_assign(char *param_1,ulong param_2,char param_3)

{
  if (param_2 == 1) {
    *param_1 = param_3;
    return;
  }
  if (param_2 == 0) {
    return;
  }
  memset(param_1,(int)param_3,param_2);
  return;
}



void FUN_0030cb80(char *param_1,size_t param_2,char param_3)

{
  if (param_2 == 1) {
    *param_1 = param_3;
    return;
  }
  if (param_2 == 0) {
    return;
  }
  memset(param_1,(int)param_3,param_2);
  return;
}


CMP RSI,0x1
JZ 0x0030cba0
TEST RSI,RSI
JNZ 0x0030cb90
RET
MOVSX EAX,DL
MOV RDX,RSI
MOV ESI,EAX
JMP 0x00147100
MOV byte ptr [RDI],DL
RET
(translation_unit "void FUN_0030cb80(char *param_1,size_t param_2,char param_3)\n\n{\n  if (param_2 == 1) {\n    *param_1 = param_3;\n    return;\n  }\n  if (param_2 == 0) {\n    return;\n  }\n  memset(param_1,(int)param_3,param_2);\n  return;\n}\n\n" (function_definition "void FUN_0030cb80(char *param_1,size_t param_2,char param_3)\n\n{\n  if (param_2 == 1) {\n    *param_1 = param_3;\n    return;\n  }\n  if (param_2 == 0) {\n    return;\n  }\n  memset(param_1,(int)param_3,param_2);\n  return;\n}" primitive_type (function_declarator "FUN_0030cb80(char *param_1,size_t param_2,char param_3)" identifier (parameter_list "(char *param_1,size_t param_2,char param_3)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "size_t param_2" primitive_type identifier) , (parameter_declaration "char param_3" primitive_type identifier) ))) (compound_statement "{\n  if (param_2 == 1) {\n    *param_1 = param_3;\n    return;\n  }\n  if (param_2 == 0) {\n    return;\n  }\n  memset(param_1,(int)param_3,param_2);\n  return;\n}" { (if_statement "if (param_2 == 1) {\n    *param_1 = param_3;\n    return;\n  }" if (parenthesized_expression "(param_2 == 1)" ( (binary_expression "param_2 == 1" identifier == number_literal) )) (compound_statement "{\n    *param_1 = param_3;\n    return;\n  }" { (expression_statement "*param_1 = param_3;" (assignment_expression "*param_1 = param_3" (pointer_expression "*param_1" * identifier) = identifier) ;) (return_statement "return;" return ;) })) (if_statement "if (param_2 == 0) {\n    return;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "memset(param_1,(int)param_3,param_2);" (call_expression "memset(param_1,(int)param_3,param_2)" identifier (argument_list "(param_1,(int)param_3,param_2)" ( identifier , (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* std::string::_M_assign(char*, unsigned long, char) */\n\nvoid std::string::_M_assign(char *param_1,ulong param_2,char param_3)\n\n{\n  if (param_2 == 1) {\n    *param_1 = param_3;\n    return;\n  }\n  if (param_2 == 0) {\n    return;\n  }\n  memset(param_1,(int)param_3,param_2);\n  return;\n}\n\n" comment (function_definition "void std::string::_M_assign(char *param_1,ulong param_2,char param_3)\n\n{\n  if (param_2 == 1) {\n    *param_1 = param_3;\n    return;\n  }\n  if (param_2 == 0) {\n    return;\n  }\n  memset(param_1,(int)param_3,param_2);\n  return;\n}" primitive_type (ERROR "std::string::" identifier : : identifier : :) (function_declarator "_M_assign(char *param_1,ulong param_2,char param_3)" identifier (parameter_list "(char *param_1,ulong param_2,char param_3)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "ulong param_2" type_identifier identifier) , (parameter_declaration "char param_3" primitive_type identifier) ))) (compound_statement "{\n  if (param_2 == 1) {\n    *param_1 = param_3;\n    return;\n  }\n  if (param_2 == 0) {\n    return;\n  }\n  memset(param_1,(int)param_3,param_2);\n  return;\n}" { (if_statement "if (param_2 == 1) {\n    *param_1 = param_3;\n    return;\n  }" if (parenthesized_expression "(param_2 == 1)" ( (binary_expression "param_2 == 1" identifier == number_literal) )) (compound_statement "{\n    *param_1 = param_3;\n    return;\n  }" { (expression_statement "*param_1 = param_3;" (assignment_expression "*param_1 = param_3" (pointer_expression "*param_1" * identifier) = identifier) ;) (return_statement "return;" return ;) })) (if_statement "if (param_2 == 0) {\n    return;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "memset(param_1,(int)param_3,param_2);" (call_expression "memset(param_1,(int)param_3,param_2)" identifier (argument_list "(param_1,(int)param_3,param_2)" ( identifier , (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0030cb80(char *param_1,size_t param_2,char param_3)\n\n{\n  if (param_2 == 1) {\n    *param_1 = param_3;\n    return;\n  }\n  if (param_2 == 0) {\n    return;\n  }\n  memset(param_1,(int)param_3,param_2);\n  return;\n}\n\n" (function_definition "void FUN_0030cb80(char *param_1,size_t param_2,char param_3)\n\n{\n  if (param_2 == 1) {\n    *param_1 = param_3;\n    return;\n  }\n  if (param_2 == 0) {\n    return;\n  }\n  memset(param_1,(int)param_3,param_2);\n  return;\n}" primitive_type (function_declarator "FUN_0030cb80(char *param_1,size_t param_2,char param_3)" identifier (parameter_list "(char *param_1,size_t param_2,char param_3)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "size_t param_2" primitive_type identifier) , (parameter_declaration "char param_3" primitive_type identifier) ))) (compound_statement "{\n  if (param_2 == 1) {\n    *param_1 = param_3;\n    return;\n  }\n  if (param_2 == 0) {\n    return;\n  }\n  memset(param_1,(int)param_3,param_2);\n  return;\n}" { (if_statement "if (param_2 == 1) {\n    *param_1 = param_3;\n    return;\n  }" if (parenthesized_expression "(param_2 == 1)" ( (binary_expression "param_2 == 1" identifier == number_literal) )) (compound_statement "{\n    *param_1 = param_3;\n    return;\n  }" { (expression_statement "*param_1 = param_3;" (assignment_expression "*param_1 = param_3" (pointer_expression "*param_1" * identifier) = identifier) ;) (return_statement "return;" return ;) })) (if_statement "if (param_2 == 0) {\n    return;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "memset(param_1,(int)param_3,param_2);" (call_expression "memset(param_1,(int)param_3,param_2)" identifier (argument_list "(param_1,(int)param_3,param_2)" ( identifier , (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , (cast_expression ( (type_descriptor TYPE) ) IDENT) , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_0030cb80(char *param_1,size_t param_2,char param_3)\n\n{\n  if (param_2 == 1) {\n    *param_1 = param_3;\n    return;\n  }\n  if (param_2 == 0) {\n    return;\n  }\n  memset(param_1,(int)param_3,param_2);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0030cb80(char *param_1,size_t param_2,char param_3)" (identifier "FUN_0030cb80") (parameter_list "(char *param_1,size_t param_2,char param_3)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "size_t param_2" (primitive_type "size_t") (identifier "param_2")) (, ",") (parameter_declaration "char param_3" (primitive_type "char") (identifier "param_3")) () ")"))) (compound_statement "{\n  if (param_2 == 1) {\n    *param_1 = param_3;\n    return;\n  }\n  if (param_2 == 0) {\n    return;\n  }\n  memset(param_1,(int)param_3,param_2);\n  return;\n}" ({ "{") (if_statement "if (param_2 == 1) {\n    *param_1 = param_3;\n    return;\n  }" (if "if") (parenthesized_expression "(param_2 == 1)" (( "(") (binary_expression "param_2 == 1" (identifier "param_2") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n    *param_1 = param_3;\n    return;\n  }" ({ "{") (expression_statement "*param_1 = param_3;" (assignment_expression "*param_1 = param_3" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "param_3")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if (param_2 == 0) {\n    return;\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "memset(param_1,(int)param_3,param_2);" (call_expression "memset(param_1,(int)param_3,param_2)" (identifier "memset") (argument_list "(param_1,(int)param_3,param_2)" (( "(") (identifier "param_1") (, ",") (cast_expression "(int)param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_3")) (, ",") (identifier "param_2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* std::string::_M_assign(char*, unsigned long, char) */

void std::string::function_1(char *param_1,type_1 var_1,char param_3)

{
  if (var_1 == 1) {
    *param_1 = param_3;
    return;
  }
  if (var_1 == 0) {
    return;
  }
  var_2(param_1,(int)param_3,var_1);
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (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: (identifier)) right: (identifier))) (return_statement))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) (identifier)))) (return_statement))))

void MASKED(char *param_1,size_t param_2,char param_3)

{
  if (param_2 == 1) {
    *param_1 = param_3;
    return;
  }
  if (param_2 == 0) {
    return;
  }
  memset(param_1,(int)param_3,param_2);
  return;
}

