user: What is the c source code of the assembly code below:

```asm
<dump_samprate>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x140,%rsp
  mov    %rdi,-0x128(%rbp)
  mov    %esi,-0x12c(%rbp)
  mov    %rdx,-0x138(%rbp)
  mov    %ecx,-0x130(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movq   $0x0,-0x110(%rbp)
  movq   $0x0,-0x108(%rbp)
  movq   $0x0,-0x100(%rbp)
  movq   $0x0,-0xf8(%rbp)
  movq   $0x0,-0xf0(%rbp)
  movq   $0x0,-0xe8(%rbp)
  movq   $0x0,-0xe0(%rbp)
  movq   $0x0,-0xd8(%rbp)
  movq   $0x0,-0xd0(%rbp)
  movq   $0x0,-0xc8(%rbp)
  movq   $0x0,-0xc0(%rbp)
  movq   $0x0,-0xb8(%rbp)
  movq   $0x0,-0xb0(%rbp)
  movq   $0x0,-0xa8(%rbp)
  movq   $0x0,-0xa0(%rbp)
  movq   $0x0,-0x98(%rbp)
  movq   $0x0,-0x90(%rbp)
  movq   $0x0,-0x88(%rbp)
  movq   $0x0,-0x80(%rbp)
  movq   $0x0,-0x78(%rbp)
  movq   $0x0,-0x70(%rbp)
  movq   $0x0,-0x68(%rbp)
  movq   $0x0,-0x60(%rbp)
  movq   $0x0,-0x58(%rbp)
  movq   $0x0,-0x50(%rbp)
  movq   $0x0,-0x48(%rbp)
  movq   $0x0,-0x40(%rbp)
  movq   $0x0,-0x38(%rbp)
  movq   $0x0,-0x30(%rbp)
  movq   $0x0,-0x28(%rbp)
  movq   $0x0,-0x20(%rbp)
  movq   $0x0,-0x18(%rbp)
  cmpl   $0x2,-0x130(%rbp)
  jne    L48
  mov    -0x138(%rbp),%rax
  movzwl (%rax),%eax
  movzwl %ax,%eax
  mov    %eax,%edi
  call   <ntohs@plt>
  mov    %eax,-0x114(%rbp)
  mov    -0x114(%rbp),%eax
  and    $0x1,%eax
  test   %eax,%eax
  je     L2
  lea    -0x110(%rbp),%rax
  lea    D49(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
L2:
  mov    -0x114(%rbp),%eax
  and    $0x2,%eax
  test   %eax,%eax
  je     L102
  lea    -0x110(%rbp),%rax
  lea    D64(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
L102:
  mov    -0x114(%rbp),%eax
  and    $0x4,%eax
  test   %eax,%eax
  je     L12
  lea    -0x110(%rbp),%rax
  lea    D22(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
L12:
  mov    -0x114(%rbp),%eax
  and    $0x8,%eax
  test   %eax,%eax
  je     L37
  lea    -0x110(%rbp),%rax
  lea    D29(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
L37:
  mov    -0x114(%rbp),%eax
  and    $0x10,%eax
  test   %eax,%eax
  je     L0
  lea    -0x110(%rbp),%rax
  lea    D26(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
L0:
  mov    -0x114(%rbp),%eax
  and    $0x20,%eax
  test   %eax,%eax
  je     L92
  lea    -0x110(%rbp),%rax
  lea    D36(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
L92:
  lea    -0x110(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L106
  mov    -0x12c(%rbp),%eax
  lea    -0x1(%rax),%edx
  lea    -0x110(%rbp),%rax
  lea    0x1(%rax),%rcx
  mov    -0x128(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncpy@plt>
  jmp    L16
L106:
  mov    -0x12c(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x128(%rbp),%rax
  lea    D63(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncpy@plt>
  jmp    L16
L48:
  mov    -0x12c(%rbp),%ecx
  mov    -0x128(%rbp),%rax
  lea    D9(%rip),%rdx
  mov    %ecx,%esi
  mov    %rax,%rdi
  call   <snprintf@plt>
L16:
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L83
  call   <__stack_chk_fail@plt>
L83:
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: label: D49
type_guessed: string
name: extract_symbolic_data
arguments: label: D64
type_guessed: string
name: extract_symbolic_data
arguments: label: D22
type_guessed: string
name: extract_symbolic_data
arguments: label: D29
type_guessed: string
name: extract_symbolic_data
arguments: label: D26
type_guessed: string
name: extract_symbolic_data
arguments: label: D36
type_guessed: string
name: extract_symbolic_data
arguments: label: D63
type_guessed: string
name: extract_symbolic_data
arguments: label: D9
type_guessed: string

tool: D49: ,8khz

tool: D64: ,11.025khz

tool: D22: ,16khz

tool: D29: ,22.05khz

tool: D26: ,44.1khz

tool: D36: ,48khz

tool: D63: None specified!


tool: D9: Invalid SHORT

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