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
  push   %rbx
  sub    $0x48,%rsp
  mov    %rdi,%rbx
  mov    %rdi,0x10(%rsp)
  mov    %rsi,0x18(%rsp)
  mov    %rdx,%rbp
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  mov    $0x3d,%edi
  call   <malloc@plt>
  mov    %rax,%r14
  mov    $0x3d,%edi
  call   <malloc@plt>
  mov    %rax,%r13
  mov    %rbx,%rdi
  call   <strlen@plt>
  mov    %eax,0xc(%rsp)
  mov    %rbp,%rdi
  call   <strlen@plt>
  mov    %eax,%ebx
  lea    0x20(%rsp),%rdi
  mov    $0xf,%edx
  mov    %rbp,%rsi
  call   <strncpy@plt>
  cmp    $0xe,%ebx
  jg     L51
  movslq %ebx,%rdx
  lea    0x20(%rsp,%rdx,1),%rax
  lea    0x21(%rsp,%rdx,1),%rdx
  mov    $0xe,%ecx
  sub    %ebx,%ecx
  add    %rcx,%rdx
L90:
  movb   $0x20,(%rax)
  add    $0x1,%rax
  cmp    %rdx,%rax
  jne    L90
L51:
  movb   $0x20,0x2f(%rsp)
  movb   $0x20,0x30(%rsp)
  movb   $0x0,0x31(%rsp)
  lea    D5(%rip),%rdi
  call   <puts@plt>
  cmpl   $0x0,0xc(%rsp)
  jle    L123
  mov    $0x0,%r15d
  jmp    L25
L24:
  add    $0x1,%rax
  cmp    %rdx,%rax
  je     L37
L87:
  cmpb   $0x20,(%rax)
  jne    L24
  movb   $0x58,(%rax)
  jmp    L24
L37:
  mov    %r13,%rsi
  lea    D23(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %r13,%rdi
  call   <strlen@plt>
  mov    %eax,%ebx
  lea    D40(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  test   %ebx,%ebx
  jle    L35
  lea    -0x1(%rbx),%eax
  lea    0x1(%r14,%rax,1),%r12
  mov    %r14,%rbx
  mov    %r13,%rbp
  sub    %r14,%rbp
  jmp    L105
L61:
  mov    $0x2a,%edi
  call   <putchar@plt>
L33:
  add    $0x1,%rbx
  cmp    %r12,%rbx
  je     L35
L105:
  movzbl 0x0(%rbp,%rbx,1),%eax
  cmp    %al,(%rbx)
  je     L61
  mov    $0x20,%edi
  call   <putchar@plt>
  jmp    L33
L35:
  lea    D13(%rip),%rdi
  call   <puts@plt>
  add    $0x3c,%r15
  cmp    %r15d,0xc(%rsp)
  jle    L123
L25:
  mov    0x18(%rsp),%rax
  lea    (%rax,%r15,1),%rsi
  mov    $0x3c,%edx
  mov    %r14,%rdi
  call   <strncpy@plt>
  movb   $0x0,0x3c(%r14)
  lea    0x20(%rsp),%rsi
  mov    %r14,%rdx
  lea    D47(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x10(%rsp),%rax
  lea    (%rax,%r15,1),%rsi
  mov    $0x3c,%edx
  mov    %r13,%rdi
  call   <strncpy@plt>
  movb   $0x0,0x3c(%r13)
  lea    0x3c(%r13),%rdx
  mov    %r13,%rax
  jmp    L87
L123:
  mov    %r14,%rdi
  call   <free@plt>
  mov    %r13,%rdi
  call   <free@plt>
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L64
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L64:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D5
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D23
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D40
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D13
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D47
type_guessed: string

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

tool: D23: Consensus        %s


tool: D40:                  

tool: D13: 



tool: D47: %s%s


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);
}
```