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

```asm
<clef_skip>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x8(%rbp)
  mov    %rsi,-0x10(%rbp)
  mov    %rdx,-0x18(%rbp)
  mov    %rcx,-0x20(%rbp)
  mov    %r8,-0x28(%rbp)
L31:
  mov    -0x8(%rbp),%rax
  mov    $0x5,%edx
  lea    D12(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L5
  mov    -0x8(%rbp),%rax
  mov    $0x4,%edx
  lea    D13(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L5
  mov    -0x8(%rbp),%rax
  mov    $0x6,%edx
  lea    D146(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L5
  mov    -0x8(%rbp),%rax
  mov    $0x4,%edx
  lea    D95(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L5
  mov    -0x8(%rbp),%rax
  mov    $0x5,%edx
  lea    D111(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L5
  mov    -0x8(%rbp),%rax
  mov    $0x4,%edx
  lea    D50(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L161
L5:
  mov    -0x10(%rbp),%rax
  mov    (%rax),%rax
  test   %rax,%rax
  je     L237
  mov    -0x8(%rbp),%rax
  mov    %rax,%rsi
  lea    D18(%rip),%rax
  mov    %rax,%rdi
  call   <syntax@plt>
L237:
  mov    -0x10(%rbp),%rax
  mov    -0x8(%rbp),%rdx
  mov    %rdx,(%rax)
  jmp    L212
L161:
  mov    -0x8(%rbp),%rax
  mov    $0x7,%edx
  lea    D4(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L86
  mov    -0x8(%rbp),%rax
  mov    $0x2,%edx
  lea    D114(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L117
L86:
  mov    -0x18(%rbp),%rax
  mov    (%rax),%rax
  test   %rax,%rax
  je     L44
  mov    -0x8(%rbp),%rax
  mov    %rax,%rsi
  lea    D145(%rip),%rax
  mov    %rax,%rdi
  call   <syntax@plt>
L44:
  mov    -0x8(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  cmp    $0x3d,%al
  jne    L101
  mov    $0x2,%edx
  jmp    L7
L101:
  mov    $0x7,%edx
L7:
  mov    -0x8(%rbp),%rax
  add    %rax,%rdx
  mov    -0x18(%rbp),%rax
  mov    %rdx,(%rax)
  jmp    L212
L117:
  mov    -0x8(%rbp),%rax
  mov    $0xb,%edx
  lea    D123(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L15
  mov    -0x20(%rbp),%rax
  mov    (%rax),%rax
  test   %rax,%rax
  je     L45
  mov    -0x8(%rbp),%rax
  mov    %rax,%rsi
  lea    D68(%rip),%rax
  mov    %rax,%rdi
  call   <syntax@plt>
L45:
  mov    -0x8(%rbp),%rax
  lea    0xb(%rax),%rdx
  mov    -0x20(%rbp),%rax
  mov    %rdx,(%rax)
  jmp    L149
L15:
  mov    -0x8(%rbp),%rax
  mov    $0xb,%edx
  lea    D105(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L256
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rax
  test   %rax,%rax
  je     L93
  mov    -0x8(%rbp),%rax
  mov    %rax,%rsi
  lea    D39(%rip),%rax
  mov    %rax,%rdi
  call   <syntax@plt>
L93:
  mov    -0x8(%rbp),%rax
  lea    0xb(%rax),%rdx
  mov    -0x28(%rbp),%rax
  mov    %rdx,(%rax)
  jmp    L149
L256:
  mov    -0x8(%rbp),%rax
  mov    $0xa,%edx
  lea    D20(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L149
  mov    -0x8(%rbp),%rax
  mov    $0x2,%edx
  lea    D109(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L16
L212:
  jmp    L149
L299:
  addq   $0x1,-0x8(%rbp)
L149:
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L4
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L299
  jmp    L4
L245:
  addq   $0x1,-0x8(%rbp)
L4:
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L245
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L62
  jmp    L31
L16:
  nop
  jmp    L170
L62:
  nop
L170:
  mov    -0x8(%rbp),%rax
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D12
datatype: string
name: extract_symbolic_data
arguments: data_label: D13
datatype: string
name: extract_symbolic_data
arguments: data_label: D146
datatype: string
name: extract_symbolic_data
arguments: data_label: D95
datatype: string
name: extract_symbolic_data
arguments: data_label: D111
datatype: string
name: extract_symbolic_data
arguments: data_label: D50
datatype: string
name: extract_symbolic_data
arguments: data_label: D18
datatype: string
name: extract_symbolic_data
arguments: data_label: D4
datatype: string
name: extract_symbolic_data
arguments: data_label: D114
datatype: string
name: extract_symbolic_data
arguments: data_label: D145
datatype: string
name: extract_symbolic_data
arguments: data_label: D123
datatype: string
name: extract_symbolic_data
arguments: data_label: D68
datatype: string
name: extract_symbolic_data
arguments: data_label: D105
datatype: string
name: extract_symbolic_data
arguments: data_label: D39
datatype: string
name: extract_symbolic_data
arguments: data_label: D20
datatype: string
name: extract_symbolic_data
arguments: data_label: D109
datatype: string

tool: D12: clef=

tool: D13: bass

tool: D146: treble

tool: D95: alto

tool: D111: tenor

tool: D50: perc

tool: D18: Double clef name

tool: D4: middle=

tool: D114: m=

tool: D145: Double clef middle

tool: D123: stafflines=

tool: D68: Double clef stafflines

tool: D105: staffscale=

tool: D39: Double clef staffscale

tool: D20: transpose=

tool: D109: t=

assistant: ```c
char *clef_skip(char *p, char **p_name, char **p_middle, char **p_lines, char **p_scale) {
  for (;;) {
    if (strncmp(p, "clef=", 5) == 0 || strncmp(p, "bass", 4) == 0 || strncmp(p, "treble", 6) == 0 || strncmp(p, "alto", 4) == 0 || strncmp(p, "tenor", 5) == 0 || strncmp(p, "perc", 4) == 0) {
      if (*p_name != 0)
        syntax("Double clef name", p);
      *p_name = p;
    } else if (strncmp(p, "middle=", 7) == 0 || strncmp(p, "m=", 2) == 0) {
      if (*p_middle != 0)
        syntax("Double clef middle", p);
      *p_middle = p + (p[1] == '=' ? 2 : 7);
    } else if (strncmp(p, "stafflines=", 11) == 0) {
      if (*p_lines != 0)
        syntax("Double clef stafflines", p);
      *p_lines = p + 11;
    } else if (strncmp(p, "staffscale=", 11) == 0) {
      if (*p_scale != 0)
        syntax("Double clef staffscale", p);
      *p_scale = p + 11;
    } else if (strncmp(p, "transpose=", 10) == 0 || strncmp(p, "t=", 2) == 0) {
      ;
    } else
      break;
    while (!isspace((unsigned)*p) && *p != '\0')
      p++;
    while (isspace((unsigned)*p))
      p++;
    if (*p == '\0')
      break;
  }
  return p;
}
```