
/* WARNING: Unknown calling convention */

void * md5_read_ctx(md5_ctx *ctx,void *resbuf)

{
  undefined8 uVar1;
  
  uVar1 = *(undefined8 *)&ctx->C;
  *(undefined8 *)resbuf = *(undefined8 *)ctx;
  *(undefined8 *)((long)resbuf + 8) = uVar1;
  return resbuf;
}



undefined8 * FUN_00330d50(undefined8 *param_1,undefined8 *param_2)

{
  undefined8 uVar1;
  
  uVar1 = param_1[1];
  *param_2 = *param_1;
  param_2[1] = uVar1;
  return param_2;
}


MOV RCX,qword ptr [RDI]
MOV RDX,qword ptr [RDI + 0x8]
MOV RAX,RSI
MOV qword ptr [RSI],RCX
MOV qword ptr [RSI + 0x8],RDX
RET
(translation_unit "undefined8 * FUN_00330d50(undefined8 *param_1,undefined8 *param_2)\n\n{\n  undefined8 uVar1;\n  \n  uVar1 = param_1[1];\n  *param_2 = *param_1;\n  param_2[1] = uVar1;\n  return param_2;\n}\n\n" (function_definition "undefined8 * FUN_00330d50(undefined8 *param_1,undefined8 *param_2)\n\n{\n  undefined8 uVar1;\n  \n  uVar1 = param_1[1];\n  *param_2 = *param_1;\n  param_2[1] = uVar1;\n  return param_2;\n}" type_identifier (pointer_declarator "* FUN_00330d50(undefined8 *param_1,undefined8 *param_2)" * (function_declarator "FUN_00330d50(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 uVar1;\n  \n  uVar1 = param_1[1];\n  *param_2 = *param_1;\n  param_2[1] = uVar1;\n  return param_2;\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = param_1[1];" (assignment_expression "uVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "*param_2 = *param_1;" (assignment_expression "*param_2 = *param_1" (pointer_expression "*param_2" * identifier) = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "param_2[1] = uVar1;" (assignment_expression "param_2[1] = uVar1" (subscript_expression "param_2[1]" identifier [ number_literal ]) = identifier) ;) (return_statement "return param_2;" return identifier ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nvoid * md5_read_ctx(md5_ctx *ctx,void *resbuf)\n\n{\n  undefined8 uVar1;\n  \n  uVar1 = *(undefined8 *)&ctx->C;\n  *(undefined8 *)resbuf = *(undefined8 *)ctx;\n  *(undefined8 *)((long)resbuf + 8) = uVar1;\n  return resbuf;\n}\n\n" comment (function_definition "void * md5_read_ctx(md5_ctx *ctx,void *resbuf)\n\n{\n  undefined8 uVar1;\n  \n  uVar1 = *(undefined8 *)&ctx->C;\n  *(undefined8 *)resbuf = *(undefined8 *)ctx;\n  *(undefined8 *)((long)resbuf + 8) = uVar1;\n  return resbuf;\n}" primitive_type (pointer_declarator "* md5_read_ctx(md5_ctx *ctx,void *resbuf)" * (function_declarator "md5_read_ctx(md5_ctx *ctx,void *resbuf)" identifier (parameter_list "(md5_ctx *ctx,void *resbuf)" ( (parameter_declaration "md5_ctx *ctx" type_identifier (pointer_declarator "*ctx" * identifier)) , (parameter_declaration "void *resbuf" primitive_type (pointer_declarator "*resbuf" * identifier)) )))) (compound_statement "{\n  undefined8 uVar1;\n  \n  uVar1 = *(undefined8 *)&ctx->C;\n  *(undefined8 *)resbuf = *(undefined8 *)ctx;\n  *(undefined8 *)((long)resbuf + 8) = uVar1;\n  return resbuf;\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = *(undefined8 *)&ctx->C;" (assignment_expression "uVar1 = *(undefined8 *)&ctx->C" identifier = (pointer_expression "*(undefined8 *)&ctx->C" * (cast_expression "(undefined8 *)&ctx->C" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&ctx->C" & (field_expression "ctx->C" identifier -> field_identifier))))) ;) (expression_statement "*(undefined8 *)resbuf = *(undefined8 *)ctx;" (assignment_expression "*(undefined8 *)resbuf = *(undefined8 *)ctx" (pointer_expression "*(undefined8 *)resbuf" * (cast_expression "(undefined8 *)resbuf" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (pointer_expression "*(undefined8 *)ctx" * (cast_expression "(undefined8 *)ctx" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*(undefined8 *)((long)resbuf + 8) = uVar1;" (assignment_expression "*(undefined8 *)((long)resbuf + 8) = uVar1" (pointer_expression "*(undefined8 *)((long)resbuf + 8)" * (cast_expression "(undefined8 *)((long)resbuf + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)resbuf + 8)" ( (binary_expression "(long)resbuf + 8" (cast_expression "(long)resbuf" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = identifier) ;) (return_statement "return resbuf;" return identifier ;) })))
(translation_unit "undefined8 * FUN_00330d50(undefined8 *param_1,undefined8 *param_2)\n\n{\n  undefined8 uVar1;\n  \n  uVar1 = param_1[1];\n  *param_2 = *param_1;\n  param_2[1] = uVar1;\n  return param_2;\n}\n\n" (function_definition "undefined8 * FUN_00330d50(undefined8 *param_1,undefined8 *param_2)\n\n{\n  undefined8 uVar1;\n  \n  uVar1 = param_1[1];\n  *param_2 = *param_1;\n  param_2[1] = uVar1;\n  return param_2;\n}" type_identifier (pointer_declarator "* FUN_00330d50(undefined8 *param_1,undefined8 *param_2)" * (function_declarator "FUN_00330d50(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 uVar1;\n  \n  uVar1 = param_1[1];\n  *param_2 = *param_1;\n  param_2[1] = uVar1;\n  return param_2;\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = param_1[1];" (assignment_expression "uVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "*param_2 = *param_1;" (assignment_expression "*param_2 = *param_1" (pointer_expression "*param_2" * identifier) = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "param_2[1] = uVar1;" (assignment_expression "param_2[1] = uVar1" (subscript_expression "param_2[1]" identifier [ number_literal ]) = identifier) ;) (return_statement "return param_2;" 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 IDENT ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return IDENT ;) })))
(function_definition "undefined8 * FUN_00330d50(undefined8 *param_1,undefined8 *param_2)\n\n{\n  undefined8 uVar1;\n  \n  uVar1 = param_1[1];\n  *param_2 = *param_1;\n  param_2[1] = uVar1;\n  return param_2;\n}" (type_identifier "undefined8") (pointer_declarator "* FUN_00330d50(undefined8 *param_1,undefined8 *param_2)" (* "*") (function_declarator "FUN_00330d50(undefined8 *param_1,undefined8 *param_2)" (identifier "FUN_00330d50") (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 uVar1;\n  \n  uVar1 = param_1[1];\n  *param_2 = *param_1;\n  param_2[1] = uVar1;\n  return param_2;\n}" ({ "{") (declaration "undefined8 uVar1;" (type_identifier "undefined8") (identifier "uVar1") (; ";")) (expression_statement "uVar1 = param_1[1];" (assignment_expression "uVar1 = param_1[1]" (identifier "uVar1") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "*param_2 = *param_1;" (assignment_expression "*param_2 = *param_1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "param_2[1] = uVar1;" (assignment_expression "param_2[1] = uVar1" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar1")) (; ";")) (return_statement "return param_2;" (return "return") (identifier "param_2") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

void * function_1(type_1 *ctx,void *resbuf)

{
  type_2 uVar1;
  
  uVar1 = *(type_2 *)&ctx->C;
  *(type_2 *)resbuf = *(type_2 *)ctx;
  *(type_2 *)((long)resbuf + 8) = uVar1;
  return resbuf;
}


(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: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (return_statement (identifier)))))

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

{
  undefined8 uVar1;
  
  uVar1 = param_1[1];
  *param_2 = *param_1;
  param_2[1] = uVar1;
  return param_2;
}

