user: Demonstrate the C code that generates the assembly output below:

```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    L66
  mov    -0x48(%rbp),%eax
  mov    %rsp,%rcx
  lea    0x6(%rax),%edx
  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     L14
L26:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rcx,%rsp
  jne    L26
L14:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  jne    L62
L35:
  mov    -0x48(%rbp),%edx
  lea    D24(%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   0x0(%rax,%rax,1)
L39:
  mov    $0x5,%edx
  lea    D11(%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    L6
  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
  cs nopw 0x0(%rax,%rax,1)
L18:
  movsd  (%r15),%xmm0
  mov    %r14,%rdi
  mov    $0x1,%eax
  add    $0xb,%r14
  add    $0x8,%r15
  call   <enc11@plt>
  cmp    %rbx,%r14
  jne    L18
  add    $0x1,%r12
  mov    %r13d,%r14d
  lea    (%r12,%r12,4),%rax
  lea    (%r12,%rax,2),%rbx
  add    -0x50(%rbp),%rbx
L84:
  addl   $0x1,-0x44(%rbp)
  mov    -0x44(%rbp),%eax
  cmp    %eax,-0x54(%rbp)
  jg     L39
  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
L4:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L30
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L6:
  mov    -0x50(%rbp),%rbx
  jmp    L84
L66:
  lea    D19(%rip),%rdi
  call   <LOG_wrk@plt>
  jmp    L4
L62:
  orq    $0x0,-0x8(%rsp,%rdx,1)
  jmp    L35
L30:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D24
type_infered: string
name: extract_symbolic_data
arguments: data_label: D11
type_infered: string
name: extract_symbolic_data
arguments: data_label: D19
type_infered: string

tool: D24: Q_^_Sc%d

tool: D11: 
Q_^<

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