
char * sstrdup(char *p)

{
  size_t sVar1;
  void *__dest;
  char *pcVar2;
  
  sVar1 = strlen(p);
  __dest = stalloc(sVar1 + 1);
  pcVar2 = (char *)memcpy(__dest,p,sVar1 + 1);
  return pcVar2;
}



void FUN_001490e8(char *param_1)

{
  size_t sVar1;
  void *__dest;
  
  sVar1 = strlen(param_1);
  __dest = (void *)FUN_00148fe1(sVar1 + 1);
  memcpy(__dest,param_1,sVar1 + 1);
  return;
}


PUSH RBP
PUSH RBX
SUB RSP,0x8
MOV RBP,RDI
CALL 0x0010b4c0
LEA RBX,[RAX + 0x1]
MOV RDI,RBX
CALL 0x00148fe1
MOV RDX,RBX
MOV RSI,RBP
MOV RDI,RAX
CALL 0x0010bb30
ADD RSP,0x8
POP RBX
POP RBP
RET
(translation_unit "void FUN_001490e8(char *param_1)\n\n{\n  size_t sVar1;\n  void *__dest;\n  \n  sVar1 = strlen(param_1);\n  __dest = (void *)FUN_00148fe1(sVar1 + 1);\n  memcpy(__dest,param_1,sVar1 + 1);\n  return;\n}\n\n" (function_definition "void FUN_001490e8(char *param_1)\n\n{\n  size_t sVar1;\n  void *__dest;\n  \n  sVar1 = strlen(param_1);\n  __dest = (void *)FUN_00148fe1(sVar1 + 1);\n  memcpy(__dest,param_1,sVar1 + 1);\n  return;\n}" primitive_type (function_declarator "FUN_001490e8(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  size_t sVar1;\n  void *__dest;\n  \n  sVar1 = strlen(param_1);\n  __dest = (void *)FUN_00148fe1(sVar1 + 1);\n  memcpy(__dest,param_1,sVar1 + 1);\n  return;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (expression_statement "sVar1 = strlen(param_1);" (assignment_expression "sVar1 = strlen(param_1)" identifier = (call_expression "strlen(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "__dest = (void *)FUN_00148fe1(sVar1 + 1);" (assignment_expression "__dest = (void *)FUN_00148fe1(sVar1 + 1)" identifier = (cast_expression "(void *)FUN_00148fe1(sVar1 + 1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00148fe1(sVar1 + 1)" identifier (argument_list "(sVar1 + 1)" ( (binary_expression "sVar1 + 1" identifier + number_literal) ))))) ;) (expression_statement "memcpy(__dest,param_1,sVar1 + 1);" (call_expression "memcpy(__dest,param_1,sVar1 + 1)" identifier (argument_list "(__dest,param_1,sVar1 + 1)" ( identifier , identifier , (binary_expression "sVar1 + 1" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "char * sstrdup(char *p)\n\n{\n  size_t sVar1;\n  void *__dest;\n  char *pcVar2;\n  \n  sVar1 = strlen(p);\n  __dest = stalloc(sVar1 + 1);\n  pcVar2 = (char *)memcpy(__dest,p,sVar1 + 1);\n  return pcVar2;\n}\n\n" (function_definition "char * sstrdup(char *p)\n\n{\n  size_t sVar1;\n  void *__dest;\n  char *pcVar2;\n  \n  sVar1 = strlen(p);\n  __dest = stalloc(sVar1 + 1);\n  pcVar2 = (char *)memcpy(__dest,p,sVar1 + 1);\n  return pcVar2;\n}" primitive_type (pointer_declarator "* sstrdup(char *p)" * (function_declarator "sstrdup(char *p)" identifier (parameter_list "(char *p)" ( (parameter_declaration "char *p" primitive_type (pointer_declarator "*p" * identifier)) )))) (compound_statement "{\n  size_t sVar1;\n  void *__dest;\n  char *pcVar2;\n  \n  sVar1 = strlen(p);\n  __dest = stalloc(sVar1 + 1);\n  pcVar2 = (char *)memcpy(__dest,p,sVar1 + 1);\n  return pcVar2;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (expression_statement "sVar1 = strlen(p);" (assignment_expression "sVar1 = strlen(p)" identifier = (call_expression "strlen(p)" identifier (argument_list "(p)" ( identifier )))) ;) (expression_statement "__dest = stalloc(sVar1 + 1);" (assignment_expression "__dest = stalloc(sVar1 + 1)" identifier = (call_expression "stalloc(sVar1 + 1)" identifier (argument_list "(sVar1 + 1)" ( (binary_expression "sVar1 + 1" identifier + number_literal) )))) ;) (expression_statement "pcVar2 = (char *)memcpy(__dest,p,sVar1 + 1);" (assignment_expression "pcVar2 = (char *)memcpy(__dest,p,sVar1 + 1)" identifier = (cast_expression "(char *)memcpy(__dest,p,sVar1 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "memcpy(__dest,p,sVar1 + 1)" identifier (argument_list "(__dest,p,sVar1 + 1)" ( identifier , identifier , (binary_expression "sVar1 + 1" identifier + number_literal) ))))) ;) (return_statement "return pcVar2;" return identifier ;) })))
(translation_unit "void FUN_001490e8(char *param_1)\n\n{\n  size_t sVar1;\n  void *__dest;\n  \n  sVar1 = strlen(param_1);\n  __dest = (void *)FUN_00148fe1(sVar1 + 1);\n  memcpy(__dest,param_1,sVar1 + 1);\n  return;\n}\n\n" (function_definition "void FUN_001490e8(char *param_1)\n\n{\n  size_t sVar1;\n  void *__dest;\n  \n  sVar1 = strlen(param_1);\n  __dest = (void *)FUN_00148fe1(sVar1 + 1);\n  memcpy(__dest,param_1,sVar1 + 1);\n  return;\n}" primitive_type (function_declarator "FUN_001490e8(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  size_t sVar1;\n  void *__dest;\n  \n  sVar1 = strlen(param_1);\n  __dest = (void *)FUN_00148fe1(sVar1 + 1);\n  memcpy(__dest,param_1,sVar1 + 1);\n  return;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (expression_statement "sVar1 = strlen(param_1);" (assignment_expression "sVar1 = strlen(param_1)" identifier = (call_expression "strlen(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "__dest = (void *)FUN_00148fe1(sVar1 + 1);" (assignment_expression "__dest = (void *)FUN_00148fe1(sVar1 + 1)" identifier = (cast_expression "(void *)FUN_00148fe1(sVar1 + 1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00148fe1(sVar1 + 1)" identifier (argument_list "(sVar1 + 1)" ( (binary_expression "sVar1 + 1" identifier + number_literal) ))))) ;) (expression_statement "memcpy(__dest,param_1,sVar1 + 1);" (call_expression "memcpy(__dest,param_1,sVar1 + 1)" identifier (argument_list "(__dest,param_1,sVar1 + 1)" ( identifier , identifier , (binary_expression "sVar1 + 1" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (binary_expression IDENT + LIT) ))) ;) (return_statement return ;) })))
(function_definition "void FUN_001490e8(char *param_1)\n\n{\n  size_t sVar1;\n  void *__dest;\n  \n  sVar1 = strlen(param_1);\n  __dest = (void *)FUN_00148fe1(sVar1 + 1);\n  memcpy(__dest,param_1,sVar1 + 1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_001490e8(char *param_1)" (identifier "FUN_001490e8") (parameter_list "(char *param_1)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  size_t sVar1;\n  void *__dest;\n  \n  sVar1 = strlen(param_1);\n  __dest = (void *)FUN_00148fe1(sVar1 + 1);\n  memcpy(__dest,param_1,sVar1 + 1);\n  return;\n}" ({ "{") (declaration "size_t sVar1;" (primitive_type "size_t") (identifier "sVar1") (; ";")) (declaration "void *__dest;" (primitive_type "void") (pointer_declarator "*__dest" (* "*") (identifier "__dest")) (; ";")) (expression_statement "sVar1 = strlen(param_1);" (assignment_expression "sVar1 = strlen(param_1)" (identifier "sVar1") (= "=") (call_expression "strlen(param_1)" (identifier "strlen") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "__dest = (void *)FUN_00148fe1(sVar1 + 1);" (assignment_expression "__dest = (void *)FUN_00148fe1(sVar1 + 1)" (identifier "__dest") (= "=") (cast_expression "(void *)FUN_00148fe1(sVar1 + 1)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00148fe1(sVar1 + 1)" (identifier "FUN_00148fe1") (argument_list "(sVar1 + 1)" (( "(") (binary_expression "sVar1 + 1" (identifier "sVar1") (+ "+") (number_literal "1")) () ")"))))) (; ";")) (expression_statement "memcpy(__dest,param_1,sVar1 + 1);" (call_expression "memcpy(__dest,param_1,sVar1 + 1)" (identifier "memcpy") (argument_list "(__dest,param_1,sVar1 + 1)" (( "(") (identifier "__dest") (, ",") (identifier "param_1") (, ",") (binary_expression "sVar1 + 1" (identifier "sVar1") (+ "+") (number_literal "1")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

char * function_1(char *p)

{
  size_t var_3;
  void *__dest;
  char *pcVar2;
  
  var_3 = var_1(p);
  __dest = var_2(var_3 + 1);
  pcVar2 = (char *)var_4(__dest,p,var_3 + 1);
  return pcVar2;
}


(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))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (binary_expression left: (identifier) right: (number_literal))))) (return_statement))))

void MASKED(char *param_1)

{
  size_t sVar1;
  void *__dest;
  
  sVar1 = strlen(param_1);
  __dest = (void *)FUN_00148fe1(sVar1 + 1);
  memcpy(__dest,param_1,sVar1 + 1);
  return;
}

