user: 请将这段汇编代码片段转换成等效的C代码:

```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     L34
  mov    $0xf,%edx
  movslq %ebx,%rdi
  mov    $0x20,%esi
  sub    %ebx,%edx
  add    %r14,%rdi
  call   <memset@plt>
L34:
  mov    $0x20,%eax
  lea    D21(%rip),%rdi
  movb   $0x20,0x3f(%rsp)
  mov    %ax,0x40(%rsp)
  call   <puts@plt>
  mov    0xc(%rsp),%edx
  test   %edx,%edx
  jle    L11
  lea    0x1(%r13),%rax
  movq   $0x0,(%rsp)
  lea    0x3c(%r12),%r15
  mov    %rax,0x28(%rsp)
  nopl   (%rax)
L90:
  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    D28(%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)
L97:
  cmpb   $0x20,(%rax)
  jne    L94
  movb   $0x58,(%rax)
L94:
  add    $0x1,%rax
  cmp    %r15,%rax
  jne    L97
  mov    %r12,%rsi
  lea    D30(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r12,%rdi
  call   <strlen@plt>
  lea    D15(%rip),%rdi
  mov    %eax,%ebx
  xor    %eax,%eax
  call   <printf@plt>
  test   %ebx,%ebx
  jle    L15
  mov    %r12,%rbp
  sub    $0x1,%ebx
  mov    %r13,%r14
  add    0x28(%rsp),%rbx
  sub    %r13,%rbp
  jmp    L13
  nopl   0x0(%rax)
L79:
  mov    $0x20,%edi
  add    $0x1,%r14
  call   <putchar@plt>
  cmp    %rbx,%r14
  je     L15
L13:
  movzbl 0x0(%rbp,%r14,1),%eax
  cmp    %al,(%r14)
  jne    L79
  mov    $0x2a,%edi
  add    $0x1,%r14
  call   <putchar@plt>
  cmp    %rbx,%r14
  jne    L13
L15:
  lea    D8(%rip),%rdi
  call   <puts@plt>
  addq   $0x3c,(%rsp)
  mov    (%rsp),%rax
  cmp    %eax,0xc(%rsp)
  jg     L90
L11:
  mov    %r13,%rdi
  call   <free@plt>
  mov    %r12,%rdi
  call   <free@plt>
  mov    0x48(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L39
  add    $0x58,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L39:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_tag: D21
type_infered: string
name: retrieve_data
arguments: data_tag: D28
type_infered: string
name: retrieve_data
arguments: data_tag: D30
type_infered: string
name: retrieve_data
arguments: data_tag: D15
type_infered: string
name: retrieve_data
arguments: data_tag: D8
type_infered: string

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

tool: D28: %s%s


tool: D30: Consensus        %s


tool: D15:                  

tool: D8: 



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