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

```asm
<qstat_dump>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x48,%rsp
  mov    %rdi,-0x60(%rbp)
  mov    %esi,-0x48(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  mov    %rsp,-0x68(%rbp)
  test   %esi,%esi
  jle    L37
  lea    0x6(%rsi),%edx
  mov    %rsp,%rcx
  mov    %rdx,%rax
  imul   $0x24924925,%rdx,%rdx
  shr    $0x20,%rdx
  sub    %edx,%eax
  shr    %eax
  add    %edx,%eax
  shr    $0x2,%eax
  mov    %eax,-0x54(%rbp)
  imul   $0x52,%eax,%eax
  add    $0x14,%eax
  cltq
  add    $0xf,%rax
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rcx
  and    $0xfffffffffffffff0,%rdx
  cmp    %rcx,%rsp
  je     L62
L0:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rcx,%rsp
  jne    L0
L62:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  jne    L24
L9:
  mov    -0x48(%rbp),%edx
  lea    D8(%rip),%rsi
  mov    %rsp,%rdi
  xor    %r14d,%r14d
  mov    %rsp,-0x70(%rbp)
  call   <sprintf@plt>
  movl   $0x0,-0x44(%rbp)
  movslq %eax,%rbx
  add    %rsp,%rbx
  nopl   (%rax)
L103:
  mov    $0x5,%edx
  lea    D10(%rip),%rsi
  mov    %rbx,%rdi
  call   <memcpy@plt>
  mov    -0x48(%rbp),%edi
  lea    0x5(%rbx),%rax
  lea    0x7(%r14),%esi
  mov    %rax,-0x50(%rbp)
  call   <min_i@plt>
  mov    %eax,%r13d
  cmp    %r14d,%eax
  jle    L28
  mov    -0x60(%rbp),%rcx
  lea    -0x1(%r13),%r12d
  movslq %r14d,%rax
  sub    %r14d,%r12d
  mov    -0x50(%rbp),%r14
  lea    (%rcx,%rax,8),%r15
  lea    (%r12,%r12,4),%rax
  lea    0x10(%r12,%rax,2),%rax
  add    %rax,%rbx
  xchg   %ax,%ax
L76:
  movsd  (%r15),%xmm0
  mov    %r14,%rdi
  mov    $0x1,%eax
  add    $0xb,%r14
  add    $0x8,%r15
  call   <enc11@plt>
  cmp    %r14,%rbx
  jne    L76
  add    $0x1,%r12
  mov    %r13d,%r14d
  lea    (%r12,%r12,4),%rax
  lea    (%r12,%rax,2),%rbx
  add    -0x50(%rbp),%rbx
L67:
  addl   $0x1,-0x44(%rbp)
  mov    -0x44(%rbp),%eax
  cmp    %eax,-0x54(%rbp)
  jg     L103
  mov    $0xa21,%eax
  mov    -0x70(%rbp),%rsi
  lea    0x2(%rbx),%rdx
  mov    $0x1,%edi
  mov    %ax,(%rbx)
  sub    %esi,%edx
  call   <write@plt>
  mov    -0x68(%rbp),%rsp
L41:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L71
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L28:
  mov    -0x50(%rbp),%rbx
  jmp    L67
L37:
  lea    D9(%rip),%rdi
  call   <LOG_wrk@plt>
  jmp    L41
L24:
  orq    $0x0,-0x8(%rsp,%rdx,1)
  jmp    L9
L71:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_tag: D8
type: string
name: unpack_data
arguments: data_tag: D10
type: string
name: unpack_data
arguments: data_tag: D9
type: string

tool: D8: Q_^_Sc%d

tool: D10: 
Q_^<

tool: D9: BUG: qstat_dump: n=%d

assistant: ```c
void qstat_dump(const double *v, int n) {
  int i, j, k, n7 = (n + 6) / 7;
  if (n7 < 1)
    return LOG_wrk("BUG: qstat_dump: n=%d", n);
  char buf[82 * n7 + 20], *q = buf;
  q += sprintf(q, "Q_^_Sc%d", n);
  for (i = j = 0; i < n7; i++) {
    memcpy(q, "\nQ_^<", 5);
    q += 5;
    for (k = min_i(n, j + 7); j < k; j++)
      enc11(q, v[j]), q += 11;
  }
  q[0] = '!';
  q[1] = 10;
  write(1, buf, q + 2 - buf);
}
```