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

```asm
<mode>:
  endbr64
  push   %r15
  movsbl %sil,%r15d
  push   %r14
  mov    %ecx,%r14d
  push   %r13
  mov    %edx,%r13d
  push   %r12
  push   %rbp
  mov    %r8d,%ebp
  push   %rbx
  mov    %edi,%ebx
  mov    %r15d,%edi
  sub    $0x8,%rsp
  call   <stox@plt>
  mov    %r15d,%edi
  and    $0x4,%eax
  mov    %eax,%r12d
  call   <stox@plt>
  movsbl %r13b,%edi
  call   <stox@plt>
  movsbl %bpl,%edi
  mov    %eax,%r13d
  call   <stox@plt>
  movsbl %bl,%edi
  mov    %eax,%ebp
  call   <stox@plt>
  movsbl %r14b,%edi
  mov    %eax,%ebx
  call   <stox@plt>
  cmp    $0x5,%ebx
  ja     L72
  mov    %eax,%ecx
  lea    D8(%rip),%rax
  movslq (%rax,%rbx,4),%rdx
  add    %rax,%rdx
  notrack jmp *%rdx
  nopl   (%rax)
  lea    D70(%rip),%rax
L129:
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  cs nopw 0x0(%rax,%rax,1)
  add    $0x8,%rsp
  lea    D17(%rip),%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  cs nopw 0x0(%rax,%rax,1)
  test   %r12d,%r12d
  lea    D167(%rip),%rax
  lea    D212(%rip),%rdx
  cmove  %rdx,%rax
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
  test   %r12d,%r12d
  je     L100
  lea    D172(%rip),%rax
  cmp    $0x4,%bpl
  je     L129
  jg     L132
  lea    D129(%rip),%rax
  test   %bpl,%bpl
  je     L129
  cmp    $0x2,%bpl
  lea    D229(%rip),%rax
  lea    D21(%rip),%rdx
  cmove  %rdx,%rax
  jmp    L129
  nop
  and    $0x8,%r13d
  lea    D131(%rip),%rax
  lea    D154(%rip),%rdx
  cmove  %rdx,%rax
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
  lea    D149(%rip),%rax
  cmp    $0x4,%cl
  je     L129
  lea    D87(%rip),%rax
  cmp    $0x5,%cl
  je     L129
  cmp    $0x6,%cl
  lea    D56(%rip),%rax
  lea    D49(%rip),%rdx
  cmovne %rdx,%rax
  jmp    L129
  nopw   0x0(%rax,%rax,1)
L132:
  cmp    $0x6,%bpl
  lea    D229(%rip),%rax
  lea    D180(%rip),%rdx
  cmove  %rdx,%rax
  jmp    L129
L72:
  add    $0x8,%rsp
  lea    D179(%rip),%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L100:
  lea    D139(%rip),%rax
  cmp    $0x4,%bpl
  je     L129
  jg     L73
  lea    D185(%rip),%rax
  test   %bpl,%bpl
  je     L129
  cmp    $0x2,%bpl
  lea    D54(%rip),%rax
  lea    D73(%rip),%rdx
  cmove  %rdx,%rax
  jmp    L129
  xchg   %ax,%ax
L73:
  cmp    $0x6,%bpl
  lea    D54(%rip),%rax
  lea    D218(%rip),%rdx
  cmove  %rdx,%rax
  jmp    L129
```

tool_calls: name: parse_data
arguments: data_tag: D70
datatype: string
name: parse_data
arguments: data_tag: D17
datatype: string
name: parse_data
arguments: data_tag: D167
datatype: string
name: parse_data
arguments: data_tag: D212
datatype: string
name: parse_data
arguments: data_tag: D172
datatype: string
name: parse_data
arguments: data_tag: D129
datatype: string
name: parse_data
arguments: data_tag: D229
datatype: string
name: parse_data
arguments: data_tag: D21
datatype: string
name: parse_data
arguments: data_tag: D131
datatype: string
name: parse_data
arguments: data_tag: D154
datatype: string
name: parse_data
arguments: data_tag: D149
datatype: string
name: parse_data
arguments: data_tag: D87
datatype: string
name: parse_data
arguments: data_tag: D56
datatype: string
name: parse_data
arguments: data_tag: D49
datatype: string
name: parse_data
arguments: data_tag: D180
datatype: string
name: parse_data
arguments: data_tag: D179
datatype: string
name: parse_data
arguments: data_tag: D139
datatype: string
name: parse_data
arguments: data_tag: D185
datatype: string
name: parse_data
arguments: data_tag: D54
datatype: string
name: parse_data
arguments: data_tag: D73
datatype: string
name: parse_data
arguments: data_tag: D218
datatype: string

tool: D70: USB

tool: D17: LSB

tool: D167: CW REV

tool: D212: CW

tool: D172: DATA REV, fsk D

tool: D129: DATA REV, data A

tool: D229: DATA REV, ???

tool: D21: DATA REV, afsk A

tool: D131: AM-S

tool: D154: AM

tool: D149: FM

tool: D87: FM+

tool: D56: FM-

tool: D49: FM?

tool: D180: DATA REV, psk D

tool: D179: ?

tool: D139: DATA, fsk D

tool: D185: DATA, data A

tool: D54: DATA, ???

tool: D73: DATA, afsk A

tool: D218: DATA, psk D

assistant: ```c
const char *mode(char modeChar, char altChar, char flags7, char fmInfo, char dataMode) {
  int modeByte, revCw, revMode;
  revCw = stox(altChar) & 0x4;
  revMode = stox(altChar) & 0x1;
  flags7 = stox(flags7);
  dataMode = stox(dataMode);
  modeByte = stox(modeChar);
  fmInfo = stox(fmInfo);
  switch (modeByte) {
  case 0:
    return revCw ? "CW REV" : "CW";
  case 1:
    return "LSB";
  case 2:
    return "USB";
  case 3:
    if (revCw)
      switch (dataMode) {
      case 0:
        return "DATA REV, data A";
      case 2:
        return "DATA REV, afsk A";
      case 4:
        return "DATA REV, fsk D";
      case 6:
        return "DATA REV, psk D";
      default:
        return "DATA REV, ???";
      }
    else
      switch (dataMode) {
      case 0:
        return "DATA, data A";
      case 2:
        return "DATA, afsk A";
      case 4:
        return "DATA, fsk D";
      case 6:
        return "DATA, psk D";
      default:
        return "DATA, ???";
      }
  case 4:
    return flags7 & 0x8 ? "AM-S" : "AM";
  case 5:
    if (fmInfo == 0x04)
      return "FM";
    else if (fmInfo == 0x05)
      return "FM+";
    else if (fmInfo == 0x06)
      return "FM-";
    else {
      return "FM?";
    }
  default:
    return "?";
  }
}
```