
/* WARNING: Unknown calling convention */

char * sb_terminate(sb *in)

{
  in->ptr[in->len] = '\0';
  return in->ptr;
}



long FUN_00126800(long *param_1)

{
  *(undefined1 *)(*param_1 + param_1[1]) = 0;
  return *param_1;
}


MOV RAX,qword ptr [RDI + 0x8]
MOV RDX,qword ptr [RDI]
MOV byte ptr [RDX + RAX*0x1],0x0
MOV RAX,qword ptr [RDI]
RET
(translation_unit "long FUN_00126800(long *param_1)\n\n{\n  *(undefined1 *)(*param_1 + param_1[1]) = 0;\n  return *param_1;\n}\n\n" (function_definition "long FUN_00126800(long *param_1)\n\n{\n  *(undefined1 *)(*param_1 + param_1[1]) = 0;\n  return *param_1;\n}" (sized_type_specifier "long" long) (function_declarator "FUN_00126800(long *param_1)" identifier (parameter_list "(long *param_1)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  *(undefined1 *)(*param_1 + param_1[1]) = 0;\n  return *param_1;\n}" { (expression_statement "*(undefined1 *)(*param_1 + param_1[1]) = 0;" (assignment_expression "*(undefined1 *)(*param_1 + param_1[1]) = 0" (pointer_expression "*(undefined1 *)(*param_1 + param_1[1])" * (cast_expression "(undefined1 *)(*param_1 + param_1[1])" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + param_1[1])" ( (binary_expression "*param_1 + param_1[1]" (pointer_expression "*param_1" * identifier) + (subscript_expression "param_1[1]" identifier [ number_literal ])) )))) = number_literal) ;) (return_statement "return *param_1;" return (pointer_expression "*param_1" * identifier) ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nchar * sb_terminate(sb *in)\n\n{\n  in->ptr[in->len] = '\0';\n  return in->ptr;\n}\n\n" comment (function_definition "char * sb_terminate(sb *in)\n\n{\n  in->ptr[in->len] = '\0';\n  return in->ptr;\n}" primitive_type (pointer_declarator "* sb_terminate(sb *in)" * (function_declarator "sb_terminate(sb *in)" identifier (parameter_list "(sb *in)" ( (parameter_declaration "sb *in" type_identifier (pointer_declarator "*in" * identifier)) )))) (compound_statement "{\n  in->ptr[in->len] = '\0';\n  return in->ptr;\n}" { (expression_statement "in->ptr[in->len] = '\0';" (assignment_expression "in->ptr[in->len] = '\0'" (subscript_expression "in->ptr[in->len]" (field_expression "in->ptr" identifier -> field_identifier) [ (field_expression "in->len" identifier -> field_identifier) ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (return_statement "return in->ptr;" return (field_expression "in->ptr" identifier -> field_identifier) ;) })))
(translation_unit "long FUN_00126800(long *param_1)\n\n{\n  *(undefined1 *)(*param_1 + param_1[1]) = 0;\n  return *param_1;\n}\n\n" (function_definition "long FUN_00126800(long *param_1)\n\n{\n  *(undefined1 *)(*param_1 + param_1[1]) = 0;\n  return *param_1;\n}" (sized_type_specifier "long" long) (function_declarator "FUN_00126800(long *param_1)" identifier (parameter_list "(long *param_1)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  *(undefined1 *)(*param_1 + param_1[1]) = 0;\n  return *param_1;\n}" { (expression_statement "*(undefined1 *)(*param_1 + param_1[1]) = 0;" (assignment_expression "*(undefined1 *)(*param_1 + param_1[1]) = 0" (pointer_expression "*(undefined1 *)(*param_1 + param_1[1])" * (cast_expression "(undefined1 *)(*param_1 + param_1[1])" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + param_1[1])" ( (binary_expression "*param_1 + param_1[1]" (pointer_expression "*param_1" * identifier) + (subscript_expression "param_1[1]" identifier [ number_literal ])) )))) = number_literal) ;) (return_statement "return *param_1;" return (pointer_expression "*param_1" * identifier) ;) })))
(translation_unit (function_definition (sized_type_specifier long) (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) ))) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + (subscript_expression IDENT [ LIT ])) )))) = LIT) ;) (return_statement return (pointer_expression * IDENT) ;) })))
(function_definition "long FUN_00126800(long *param_1)\n\n{\n  *(undefined1 *)(*param_1 + param_1[1]) = 0;\n  return *param_1;\n}" (sized_type_specifier "long" (long "long")) (function_declarator "FUN_00126800(long *param_1)" (identifier "FUN_00126800") (parameter_list "(long *param_1)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  *(undefined1 *)(*param_1 + param_1[1]) = 0;\n  return *param_1;\n}" ({ "{") (expression_statement "*(undefined1 *)(*param_1 + param_1[1]) = 0;" (assignment_expression "*(undefined1 *)(*param_1 + param_1[1]) = 0" (pointer_expression "*(undefined1 *)(*param_1 + param_1[1])" (* "*") (cast_expression "(undefined1 *)(*param_1 + param_1[1])" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + param_1[1])" (( "(") (binary_expression "*param_1 + param_1[1]" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return *param_1;" (return "return") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

char * function_1(type_1 *in)

{
  in->ptr[in->len] = '\0';
  return in->ptr;
}


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

long MASKED(long *param_1)

{
  *(undefined1 *)(*param_1 + param_1[1]) = 0;
  return *param_1;
}

