user: Translate the below assembly code into C programming language:

```asm
<clustalw_print_cons>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  mov    %rdx,%rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x58,%rsp
  mov    %rsi,0x18(%rsp)
  lea    0x30(%rsp),%r14
  mov    %rdi,0x10(%rsp)
  mov    $0x3d,%edi
  mov    %fs:0x28,%rax
  mov    %rax,0x48(%rsp)
  xor    %eax,%eax
  call   <malloc@plt>
  mov    $0x3d,%edi
  mov    %rax,%r13
  call   <malloc@plt>
  mov    %rbx,%rdi
  mov    %rax,%r12
  call   <strlen@plt>
  mov    %rbp,%rdi
  mov    %eax,0xc(%rsp)
  call   <strlen@plt>
  mov    $0xf,%edx
  mov    %rbp,%rsi
  mov    %r14,%rdi
  mov    %eax,%ebx
  mov    %r14,0x20(%rsp)
  call   <strncpy@plt>
  cmp    $0xe,%ebx
  jg     L93
  mov    $0xf,%edx
  movslq %ebx,%rdi
  mov    $0x20,%esi
  sub    %ebx,%edx
  add    %r14,%rdi
  call   <memset@plt>
L93:
  mov    $0x20,%eax
  lea    D6(%rip),%rdi
  movb   $0x20,0x3f(%rsp)
  mov    %ax,0x40(%rsp)
  call   <puts@plt>
  mov    0xc(%rsp),%edx
  test   %edx,%edx
  jle    L17
  lea    0x1(%r13),%rax
  movq   $0x0,(%rsp)
  lea    0x3c(%r12),%r15
  mov    %rax,0x28(%rsp)
  nopl   (%rax)
L37:
  mov    (%rsp),%rbx
  mov    0x18(%rsp),%rsi
  mov    $0x3c,%edx
  mov    %r13,%rdi
  add    %rbx,%rsi
  call   <strncpy@plt>
  movb   $0x0,0x3c(%r13)
  mov    %r13,%rdx
  xor    %eax,%eax
  mov    0x20(%rsp),%rsi
  lea    D11(%rip),%rdi
  call   <printf@plt>
  mov    0x10(%rsp),%rsi
  mov    $0x3c,%edx
  mov    %r12,%rdi
  add    %rbx,%rsi
  call   <strncpy@plt>
  movb   $0x0,0x3c(%r12)
  mov    %r12,%rax
  nopw   0x0(%rax,%rax,1)
L81:
  cmpb   $0x20,(%rax)
  jne    L51
  movb   $0x58,(%rax)
L51:
  add    $0x1,%rax
  cmp    %r15,%rax
  jne    L81
  mov    %r12,%rsi
  lea    D27(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r12,%rdi
  call   <strlen@plt>
  lea    D7(%rip),%rdi
  mov    %eax,%ebx
  xor    %eax,%eax
  call   <printf@plt>
  test   %ebx,%ebx
  jle    L48
  mov    %r12,%rbp
  sub    $0x1,%ebx
  mov    %r13,%r14
  add    0x28(%rsp),%rbx
  sub    %r13,%rbp
  jmp    L73
  nopl   0x0(%rax)
L23:
  mov    $0x20,%edi
  add    $0x1,%r14
  call   <putchar@plt>
  cmp    %rbx,%r14
  je     L48
L73:
  movzbl 0x0(%rbp,%r14,1),%eax
  cmp    %al,(%r14)
  jne    L23
  mov    $0x2a,%edi
  add    $0x1,%r14
  call   <putchar@plt>
  cmp    %rbx,%r14
  jne    L73
L48:
  lea    D28(%rip),%rdi
  call   <puts@plt>
  addq   $0x3c,(%rsp)
  mov    (%rsp),%rax
  cmp    %eax,0xc(%rsp)
  jg     L37
L17:
  mov    %r13,%rdi
  call   <free@plt>
  mov    %r12,%rdi
  call   <free@plt>
  mov    0x48(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L26
  add    $0x58,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L26:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_label: D6
type_guessed: string
name: parse_data
arguments: data_label: D11
type_guessed: string
name: parse_data
arguments: data_label: D27
type_guessed: string
name: parse_data
arguments: data_label: D7
type_guessed: string
name: parse_data
arguments: data_label: D28
type_guessed: string

tool: D6: CLUSTAL W (1.8) multiple sequence alignment

tool: D11: %s%s


tool: D27: Consensus        %s


tool: D7:                  

tool: D28: 



assistant: ```c
void clustalw_print_cons(char *cons, char *aln_ref, char *ref_id) {
  int len, ln, i, ln_len, ref_id_len;
  char ref_start[18];
  char *curr_ref_line;
  char *curr_cons_line;
  curr_ref_line = (char *)malloc(((60) + 1) * sizeof(char));
  curr_cons_line = (char *)malloc(((60) + 1) * sizeof(char));
  len = strlen(cons);
  ref_id_len = strlen(ref_id);
  ln = 0;
  strncpy(ref_start, ref_id, 15);
  for (i = ref_id_len; i < 15; i++) {
    ref_start[i] = ' ';
  }
  ref_start[15] = ' ';
  ref_start[16] = ' ';
  ref_start[17] = '\0';
  printf("CLUSTAL W (1.8) multiple sequence alignment\n");
  while ((ln * (60)) < len) {
    strncpy(curr_ref_line, &aln_ref[(60) * ln], 60);
    curr_ref_line[(60)] = '\0';
    printf("%s%s\n", ref_start, curr_ref_line);
    strncpy(curr_cons_line, &cons[(60) * ln], 60);
    curr_cons_line[(60)] = '\0';
    for (i = 0; i < (60); i++) {
      if (curr_cons_line[i] == ' ') {
        curr_cons_line[i] = 'X';
      }
    }
    printf("Consensus        %s\n", curr_cons_line);
    ln_len = strlen(curr_cons_line);
    printf("                 ");
    for (i = 0; i < ln_len; i++) {
      if (curr_ref_line[i] == curr_cons_line[i]) {
        printf("*");
      } else {
        printf(" ");
      }
    }
    printf("\n\n\n");
    ln++;
  }
  free(curr_ref_line);
  free(curr_cons_line);
}
```