
void sb_add_string(sb *ptr,char *s)

{
  size_t len;
  
  len = strlen(s);
  sb_check(ptr,len);
  memcpy(ptr->ptr + ptr->len,s,len);
  ptr->len = ptr->len + len;
  return;
}



void FUN_00126790(long *param_1,char *param_2)

{
  size_t __n;
  
  __n = strlen(param_2);
  FUN_001265e0(param_1,__n);
  memcpy((void *)(param_1[1] + *param_1),param_2,__n);
  param_1[1] = param_1[1] + __n;
  return;
}


PUSH R12
MOV R12,RSI
PUSH RBP
PUSH RBX
MOV RBX,RDI
MOV RDI,RSI
CALL 0x001081e0
MOV RDI,RBX
MOV RBP,RAX
MOV RSI,RAX
CALL 0x001265e0
MOV RDI,qword ptr [RBX + 0x8]
MOV RDX,RBP
ADD RDI,qword ptr [RBX]
MOV RSI,R12
CALL 0x00108470
ADD qword ptr [RBX + 0x8],RBP
POP RBX
POP RBP
POP R12
RET
(translation_unit "void FUN_00126790(long *param_1,char *param_2)\n\n{\n  size_t __n;\n  \n  __n = strlen(param_2);\n  FUN_001265e0(param_1,__n);\n  memcpy((void *)(param_1[1] + *param_1),param_2,__n);\n  param_1[1] = param_1[1] + __n;\n  return;\n}\n\n" (function_definition "void FUN_00126790(long *param_1,char *param_2)\n\n{\n  size_t __n;\n  \n  __n = strlen(param_2);\n  FUN_001265e0(param_1,__n);\n  memcpy((void *)(param_1[1] + *param_1),param_2,__n);\n  param_1[1] = param_1[1] + __n;\n  return;\n}" primitive_type (function_declarator "FUN_00126790(long *param_1,char *param_2)" identifier (parameter_list "(long *param_1,char *param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  size_t __n;\n  \n  __n = strlen(param_2);\n  FUN_001265e0(param_1,__n);\n  memcpy((void *)(param_1[1] + *param_1),param_2,__n);\n  param_1[1] = param_1[1] + __n;\n  return;\n}" { (declaration "size_t __n;" primitive_type identifier ;) (expression_statement "__n = strlen(param_2);" (assignment_expression "__n = strlen(param_2)" identifier = (call_expression "strlen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "FUN_001265e0(param_1,__n);" (call_expression "FUN_001265e0(param_1,__n)" identifier (argument_list "(param_1,__n)" ( identifier , identifier ))) ;) (expression_statement "memcpy((void *)(param_1[1] + *param_1),param_2,__n);" (call_expression "memcpy((void *)(param_1[1] + *param_1),param_2,__n)" identifier (argument_list "((void *)(param_1[1] + *param_1),param_2,__n)" ( (cast_expression "(void *)(param_1[1] + *param_1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[1] + *param_1)" ( (binary_expression "param_1[1] + *param_1" (subscript_expression "param_1[1]" identifier [ number_literal ]) + (pointer_expression "*param_1" * identifier)) ))) , identifier , identifier ))) ;) (expression_statement "param_1[1] = param_1[1] + __n;" (assignment_expression "param_1[1] = param_1[1] + __n" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "param_1[1] + __n" (subscript_expression "param_1[1]" identifier [ number_literal ]) + identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit "void sb_add_string(sb *ptr,char *s)\n\n{\n  size_t len;\n  \n  len = strlen(s);\n  sb_check(ptr,len);\n  memcpy(ptr->ptr + ptr->len,s,len);\n  ptr->len = ptr->len + len;\n  return;\n}\n\n" (function_definition "void sb_add_string(sb *ptr,char *s)\n\n{\n  size_t len;\n  \n  len = strlen(s);\n  sb_check(ptr,len);\n  memcpy(ptr->ptr + ptr->len,s,len);\n  ptr->len = ptr->len + len;\n  return;\n}" primitive_type (function_declarator "sb_add_string(sb *ptr,char *s)" identifier (parameter_list "(sb *ptr,char *s)" ( (parameter_declaration "sb *ptr" type_identifier (pointer_declarator "*ptr" * identifier)) , (parameter_declaration "char *s" primitive_type (pointer_declarator "*s" * identifier)) ))) (compound_statement "{\n  size_t len;\n  \n  len = strlen(s);\n  sb_check(ptr,len);\n  memcpy(ptr->ptr + ptr->len,s,len);\n  ptr->len = ptr->len + len;\n  return;\n}" { (declaration "size_t len;" primitive_type identifier ;) (expression_statement "len = strlen(s);" (assignment_expression "len = strlen(s)" identifier = (call_expression "strlen(s)" identifier (argument_list "(s)" ( identifier )))) ;) (expression_statement "sb_check(ptr,len);" (call_expression "sb_check(ptr,len)" identifier (argument_list "(ptr,len)" ( identifier , identifier ))) ;) (expression_statement "memcpy(ptr->ptr + ptr->len,s,len);" (call_expression "memcpy(ptr->ptr + ptr->len,s,len)" identifier (argument_list "(ptr->ptr + ptr->len,s,len)" ( (binary_expression "ptr->ptr + ptr->len" (field_expression "ptr->ptr" identifier -> field_identifier) + (field_expression "ptr->len" identifier -> field_identifier)) , identifier , identifier ))) ;) (expression_statement "ptr->len = ptr->len + len;" (assignment_expression "ptr->len = ptr->len + len" (field_expression "ptr->len" identifier -> field_identifier) = (binary_expression "ptr->len + len" (field_expression "ptr->len" identifier -> field_identifier) + identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00126790(long *param_1,char *param_2)\n\n{\n  size_t __n;\n  \n  __n = strlen(param_2);\n  FUN_001265e0(param_1,__n);\n  memcpy((void *)(param_1[1] + *param_1),param_2,__n);\n  param_1[1] = param_1[1] + __n;\n  return;\n}\n\n" (function_definition "void FUN_00126790(long *param_1,char *param_2)\n\n{\n  size_t __n;\n  \n  __n = strlen(param_2);\n  FUN_001265e0(param_1,__n);\n  memcpy((void *)(param_1[1] + *param_1),param_2,__n);\n  param_1[1] = param_1[1] + __n;\n  return;\n}" primitive_type (function_declarator "FUN_00126790(long *param_1,char *param_2)" identifier (parameter_list "(long *param_1,char *param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  size_t __n;\n  \n  __n = strlen(param_2);\n  FUN_001265e0(param_1,__n);\n  memcpy((void *)(param_1[1] + *param_1),param_2,__n);\n  param_1[1] = param_1[1] + __n;\n  return;\n}" { (declaration "size_t __n;" primitive_type identifier ;) (expression_statement "__n = strlen(param_2);" (assignment_expression "__n = strlen(param_2)" identifier = (call_expression "strlen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "FUN_001265e0(param_1,__n);" (call_expression "FUN_001265e0(param_1,__n)" identifier (argument_list "(param_1,__n)" ( identifier , identifier ))) ;) (expression_statement "memcpy((void *)(param_1[1] + *param_1),param_2,__n);" (call_expression "memcpy((void *)(param_1[1] + *param_1),param_2,__n)" identifier (argument_list "((void *)(param_1[1] + *param_1),param_2,__n)" ( (cast_expression "(void *)(param_1[1] + *param_1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[1] + *param_1)" ( (binary_expression "param_1[1] + *param_1" (subscript_expression "param_1[1]" identifier [ number_literal ]) + (pointer_expression "*param_1" * identifier)) ))) , identifier , identifier ))) ;) (expression_statement "param_1[1] = param_1[1] + __n;" (assignment_expression "param_1[1] = param_1[1] + __n" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "param_1[1] + __n" (subscript_expression "param_1[1]" identifier [ number_literal ]) + identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + (pointer_expression * IDENT)) ))) , IDENT , IDENT ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + IDENT)) ;) (return_statement return ;) })))
(function_definition "void FUN_00126790(long *param_1,char *param_2)\n\n{\n  size_t __n;\n  \n  __n = strlen(param_2);\n  FUN_001265e0(param_1,__n);\n  memcpy((void *)(param_1[1] + *param_1),param_2,__n);\n  param_1[1] = param_1[1] + __n;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00126790(long *param_1,char *param_2)" (identifier "FUN_00126790") (parameter_list "(long *param_1,char *param_2)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  size_t __n;\n  \n  __n = strlen(param_2);\n  FUN_001265e0(param_1,__n);\n  memcpy((void *)(param_1[1] + *param_1),param_2,__n);\n  param_1[1] = param_1[1] + __n;\n  return;\n}" ({ "{") (declaration "size_t __n;" (primitive_type "size_t") (identifier "__n") (; ";")) (expression_statement "__n = strlen(param_2);" (assignment_expression "__n = strlen(param_2)" (identifier "__n") (= "=") (call_expression "strlen(param_2)" (identifier "strlen") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "FUN_001265e0(param_1,__n);" (call_expression "FUN_001265e0(param_1,__n)" (identifier "FUN_001265e0") (argument_list "(param_1,__n)" (( "(") (identifier "param_1") (, ",") (identifier "__n") () ")"))) (; ";")) (expression_statement "memcpy((void *)(param_1[1] + *param_1),param_2,__n);" (call_expression "memcpy((void *)(param_1[1] + *param_1),param_2,__n)" (identifier "memcpy") (argument_list "((void *)(param_1[1] + *param_1),param_2,__n)" (( "(") (cast_expression "(void *)(param_1[1] + *param_1)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1[1] + *param_1)" (( "(") (binary_expression "param_1[1] + *param_1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (+ "+") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) () ")"))) (, ",") (identifier "param_2") (, ",") (identifier "__n") () ")"))) (; ";")) (expression_statement "param_1[1] = param_1[1] + __n;" (assignment_expression "param_1[1] = param_1[1] + __n" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "param_1[1] + __n" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (+ "+") (identifier "__n"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *ptr,char *s)

{
  size_t var_4;
  
  var_4 = var_1(s);
  var_2(ptr,var_4);
  var_3(ptr->ptr + ptr->var_4,s,var_4);
  ptr->var_4 = ptr->var_4 + var_4;
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (identifier))))) (identifier) (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)))) (return_statement))))

void MASKED(long *param_1,char *param_2)

{
  size_t __n;
  
  __n = strlen(param_2);
  FUN_001265e0(param_1,__n);
  memcpy((void *)(param_1[1] + *param_1),param_2,__n);
  param_1[1] = param_1[1] + __n;
  return;
}

