user: 请从给定的汇编指令推导出C源代码:

```asm
<dump_samprate>:
  endbr64
  push   %r12
  pxor   %xmm0,%xmm0
  mov    %rdi,%r12
  push   %rbp
  mov    %esi,%ebp
  push   %rbx
  sub    $0x110,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x108(%rsp)
  xor    %eax,%eax
  movaps %xmm0,(%rsp)
  movaps %xmm0,0x10(%rsp)
  movaps %xmm0,0x20(%rsp)
  movaps %xmm0,0x30(%rsp)
  movaps %xmm0,0x40(%rsp)
  movaps %xmm0,0x50(%rsp)
  movaps %xmm0,0x60(%rsp)
  movaps %xmm0,0x70(%rsp)
  movaps %xmm0,0x80(%rsp)
  movaps %xmm0,0x90(%rsp)
  movaps %xmm0,0xa0(%rsp)
  movaps %xmm0,0xb0(%rsp)
  movaps %xmm0,0xc0(%rsp)
  movaps %xmm0,0xd0(%rsp)
  movaps %xmm0,0xe0(%rsp)
  movaps %xmm0,0xf0(%rsp)
  cmp    $0x2,%ecx
  je     L124
  lea    D66(%rip),%rdx
  call   <snprintf@plt>
L43:
  mov    0x108(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L7
  add    $0x110,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
  cs nopw 0x0(%rax,%rax,1)
L124:
  movzwl (%rdx),%edi
  call   <ntohs@plt>
  mov    %eax,%ebx
  test   $0x1,%al
  jne    L25
L88:
  test   $0x2,%bl
  jne    L42
L129:
  test   $0x4,%bl
  jne    L83
L116:
  test   $0x8,%bl
  jne    L97
L159:
  test   $0x10,%bl
  jne    L86
L48:
  and    $0x20,%ebx
  jne    L2
L39:
  cmpb   $0x0,(%rsp)
  lea    -0x1(%rbp),%edx
  je     L34
  lea    0x1(%rsp),%rsi
  mov    %r12,%rdi
  call   <strncpy@plt>
  jmp    L43
  nopl   0x0(%rax,%rax,1)
L34:
  lea    D56(%rip),%rsi
  mov    %r12,%rdi
  call   <strncpy@plt>
  jmp    L43
  nopl   0x0(%rax)
L2:
  mov    %rsp,%rdi
  lea    D6(%rip),%rsi
  call   <strcat@plt>
  jmp    L39
  nopl   0x0(%rax)
L86:
  mov    %rsp,%rdi
  lea    D44(%rip),%rsi
  call   <strcat@plt>
  jmp    L48
  nopl   0x0(%rax)
L97:
  mov    %rsp,%rdi
  lea    D70(%rip),%rsi
  call   <strcat@plt>
  jmp    L159
  nopl   0x0(%rax)
L83:
  mov    %rsp,%rdi
  lea    D53(%rip),%rsi
  call   <strcat@plt>
  jmp    L116
  nopl   0x0(%rax)
L42:
  mov    %rsp,%rdi
  lea    D48(%rip),%rsi
  call   <strcat@plt>
  jmp    L129
  nopl   0x0(%rax)
L25:
  mov    %rsp,%rdi
  lea    D11(%rip),%rsi
  call   <strcat@plt>
  jmp    L88
L7:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_tag: D66
datatype: string
name: disassemble_data
arguments: data_tag: D56
datatype: string
name: disassemble_data
arguments: data_tag: D6
datatype: string
name: disassemble_data
arguments: data_tag: D44
datatype: string
name: disassemble_data
arguments: data_tag: D70
datatype: string
name: disassemble_data
arguments: data_tag: D53
datatype: string
name: disassemble_data
arguments: data_tag: D48
datatype: string
name: disassemble_data
arguments: data_tag: D11
datatype: string

tool: D66: Invalid SHORT

tool: D56: None specified!


tool: D6: ,48khz

tool: D44: ,44.1khz

tool: D70: ,22.05khz

tool: D53: ,16khz

tool: D48: ,11.025khz

tool: D11: ,8khz

assistant: ```c
void dump_samprate(char *output, int maxlen, void *value, int len) {
  char tmp[256] = "";
  int sr;
  if (len == (int)sizeof(unsigned short)) {
    sr = ntohs(*((unsigned short *)value));
    if (sr & (1 << 0))
      strcat(tmp, ",8khz");
    if (sr & (1 << 1))
      strcat(tmp, ",11.025khz");
    if (sr & (1 << 2))
      strcat(tmp, ",16khz");
    if (sr & (1 << 3))
      strcat(tmp, ",22.05khz");
    if (sr & (1 << 4))
      strcat(tmp, ",44.1khz");
    if (sr & (1 << 5))
      strcat(tmp, ",48khz");
    if (strlen(tmp))
      strncpy(output, &tmp[1], maxlen - 1);
    else
      strncpy(output, "None specified!\n", maxlen - 1);
  } else
    snprintf(output, maxlen, "Invalid SHORT");
}
```