user: Converte this assembly snippet into its equivalent C code:

```asm
<display_align>:
  endbr64
  push   %r15
  push   %r14
  mov    %esi,%r14d
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %rdi,0x30(%rsp)
  mov    0xa8(%rsp),%rbx
  mov    (%rdi),%rdi
  mov    0x90(%rsp),%r13d
  mov    %esi,0x28(%rsp)
  mov    %rdx,0x10(%rsp)
  mov    %ecx,0x2c(%rsp)
  mov    %r8,0x38(%rsp)
  mov    %r9,0x20(%rsp)
  call   <strlen@plt>
  mov    %rbx,%rcx
  mov    $0x10,%edx
  mov    $0x1,%esi
  lea    D46(%rip),%rdi
  mov    %eax,%r12d
  call   <fwrite@plt>
  lea    -0x2(%r13),%eax
  mov    %eax,0x1c(%rsp)
  lea    0x1(%r14),%eax
  mov    %rax,0x8(%rsp)
  test   %r12d,%r12d
  jle    L199
  xor    %ebp,%ebp
  nopl   0x0(%rax)
L46:
  mov    %rbx,%rcx
  mov    $0x9,%edx
  mov    $0x1,%esi
  lea    D60(%rip),%rdi
  lea    -0x2(%r12),%r14d
  call   <fwrite@plt>
  cmp    0x1c(%rsp),%ebp
  jge    L129
  mov    %ebp,(%rsp)
  mov    0x1c(%rsp),%r15d
  jmp    L127
  cs nopw 0x0(%rax,%rax,1)
L29:
  lea    D87(%rip),%rsi
  mov    %rbx,%rdi
  xor    %eax,%eax
  add    $0x2,%ebp
  call   <fprintf@plt>
  cmp    %ebp,%r14d
  jle    L72
L85:
  add    $0x1,%ebp
  cmp    %r15d,%ebp
  jge    L72
L127:
  lea    0x3(%rbp),%edx
  imul   $0xcccccccd,%edx,%eax
  add    $0x19999998,%eax
  ror    %eax
  cmp    $0x19999998,%eax
  jbe    L29
  mov    %rbx,%rsi
  mov    $0x20,%edi
  call   <fputc@plt>
  cmp    %ebp,%r14d
  jg     L85
L72:
  mov    (%rsp),%ebp
L129:
  mov    %rbx,%rsi
  mov    $0xa,%edi
  mov    $0x1,%r14d
  call   <fputc@plt>
  mov    0x28(%rsp),%esi
  mov    %r14,%r15
  mov    0x30(%rsp),%r14
  test   %esi,%esi
  jle    L177
L90:
  mov    %r15d,%edx
  lea    D19(%rip),%rsi
  mov    %rbx,%rdi
  xor    %eax,%eax
  call   <fprintf@plt>
  mov    -0x8(%r14,%r15,8),%rdi
  mov    %rbx,%r8
  mov    %r12d,%ecx
  mov    %ebp,%edx
  mov    %r13d,%esi
  add    $0x1,%r15
  call   <dispone@plt>
  cmp    0x8(%rsp),%r15
  jne    L90
  mov    0x98(%rsp),%eax
  test   %eax,%eax
  jne    L132
L177:
  mov    0xa0(%rsp),%ecx
  test   %ecx,%ecx
  jne    L28
L106:
  mov    0x2c(%rsp),%eax
  mov    $0x1,%r14d
  lea    D58(%rip),%r15
  lea    0x1(%rax),%ecx
  mov    %rcx,(%rsp)
  test   %eax,%eax
  jle    L102
  xchg   %ax,%ax
L159:
  mov    %r14d,%edx
  mov    %r15,%rsi
  mov    %rbx,%rdi
  xor    %eax,%eax
  call   <fprintf@plt>
  mov    0x10(%rsp),%rax
  mov    %rbx,%r8
  mov    %r12d,%ecx
  mov    %ebp,%edx
  mov    %r13d,%esi
  mov    -0x8(%rax,%r14,8),%rdi
  add    $0x1,%r14
  call   <dispone@plt>
  cmp    %r14,(%rsp)
  jne    L159
  mov    0x98(%rsp),%edx
  test   %edx,%edx
  jne    L142
L102:
  mov    %rbx,%rsi
  mov    $0xa,%edi
  add    %r13d,%ebp
  call   <fputc@plt>
  add    %r13d,0x1c(%rsp)
  cmp    %ebp,%r12d
  jg     L46
L199:
  add    $0x48,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L28:
  mov    %rbx,%rcx
  mov    $0xa,%edx
  mov    $0x1,%esi
  lea    D89(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbx,%r8
  mov    %r12d,%ecx
  mov    %ebp,%edx
  mov    0x80(%rsp),%rdi
  mov    %r13d,%esi
  call   <dispone@plt>
  mov    %rbx,%rcx
  mov    $0xa,%edx
  mov    $0x1,%esi
  lea    D24(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbx,%r8
  mov    %r12d,%ecx
  mov    %ebp,%edx
  mov    0x88(%rsp),%rdi
  mov    %r13d,%esi
  call   <dispone@plt>
  jmp    L106
  nop
L142:
  mov    $0x1,%r15d
  lea    D36(%rip),%r14
  nopl   (%rax)
L141:
  mov    %r15d,%edx
  mov    %r14,%rsi
  mov    %rbx,%rdi
  xor    %eax,%eax
  call   <fprintf@plt>
  mov    0x20(%rsp),%rax
  mov    %rbx,%r8
  mov    %r12d,%ecx
  mov    %ebp,%edx
  mov    %r13d,%esi
  mov    -0x8(%rax,%r15,8),%rdi
  add    $0x1,%r15
  call   <dispone@plt>
  cmp    %r15,(%rsp)
  jne    L141
  jmp    L102
  nopl   0x0(%rax)
L132:
  mov    0x38(%rsp),%r14
  mov    $0x1,%r15d
  nopl   0x0(%rax,%rax,1)
L71:
  mov    %r15d,%edx
  lea    D84(%rip),%rsi
  mov    %rbx,%rdi
  xor    %eax,%eax
  call   <fprintf@plt>
  mov    -0x8(%r14,%r15,8),%rdi
  mov    %rbx,%r8
  mov    %r12d,%ecx
  mov    %ebp,%edx
  mov    %r13d,%esi
  add    $0x1,%r15
  call   <dispone@plt>
  cmp    0x8(%rsp),%r15
  jne    L71
  jmp    L177
```

tool_calls: name: retrieve_data
arguments: data_label: D46
type_guessed: string
name: retrieve_data
arguments: data_label: D60
type_guessed: string
name: retrieve_data
arguments: data_label: D87
type_guessed: string
name: retrieve_data
arguments: data_label: D19
type_guessed: string
name: retrieve_data
arguments: data_label: D58
type_guessed: string
name: retrieve_data
arguments: data_label: D89
type_guessed: string
name: retrieve_data
arguments: data_label: D24
type_guessed: string
name: retrieve_data
arguments: data_label: D36
type_guessed: string
name: retrieve_data
arguments: data_label: D84
type_guessed: string

tool: D46: 
The alignment:


tool: D60: Position 

tool: D87: %3d

tool: D19: A(aa%3d): 

tool: D58: B(aa%3d): 

tool: D89: FIT:      

tool: D24: VALUE:    

tool: D36: B(ss%3d): 

tool: D84: A(ss%3d): 

assistant: ```c
int display_align(char **seqa, int na, char **seqb, int nb, char **seca, char **secb, char *fit, char *value, int cols, int printsec, int printdat, FILE *OUTPUT) {
  int i, j, k;
  int count;
  int max;
  count = 0;
  max = strlen(seqa[0]);
  fprintf(OUTPUT, "\nThe alignment:\n");
  while (count < max) {
    fprintf(OUTPUT, "Position ");
    for (i = count; i < count + cols - 2; ++i) {
      if ((i + 3) % 10 == 0) {
        fprintf(OUTPUT, "%3d", i + 3);
        i += 2;
      } else
        fprintf(OUTPUT, " ");
      if (i >= max - 2)
        break;
    }
    fprintf(OUTPUT, "\n");
    for (i = 0; i < na; ++i) {
      fprintf(OUTPUT, "A(aa%3d): ", i + 1);
      dispone(seqa[i], cols, count, max, OUTPUT);
    }
    if (printsec) {
      for (i = 0; i < na; ++i) {
        fprintf(OUTPUT, "A(ss%3d): ", i + 1);
        dispone(seca[i], cols, count, max, OUTPUT);
      }
    }
    if (printdat) {
      fprintf(OUTPUT, "FIT:      ");
      dispone(fit, cols, count, max, OUTPUT);
      fprintf(OUTPUT, "VALUE:    ");
      dispone(value, cols, count, max, OUTPUT);
    }
    for (i = 0; i < nb; ++i) {
      fprintf(OUTPUT, "B(aa%3d): ", i + 1);
      dispone(seqb[i], cols, count, max, OUTPUT);
    }
    if (printsec) {
      for (i = 0; i < nb; ++i) {
        fprintf(OUTPUT, "B(ss%3d): ", i + 1);
        dispone(secb[i], cols, count, max, OUTPUT);
      }
    }
    count += cols;
    fprintf(OUTPUT, "\n");
  }
  return 0;
}
```