user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<main>:
  endbr64
  push   %r14
  lea    D99(%rip),%rdi
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x70,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x68(%rsp)
  xor    %eax,%eax
  mov    %rsp,%rsi
  call   <scanf@plt>
  movzbl (%rsp),%eax
  test   %al,%al
  je     L3
  lea    0x1(%rsp),%r14
  lea    D120(%rip),%rbx
  lea    D45(%rip),%r13
  lea    D50(%rip),%r12
  lea    D159(%rip),%rbp
  nopl   0x0(%rax,%rax,1)
L132:
  sub    $0x30,%eax
  cmp    $0x36,%al
  ja     L85
  movzbl %al,%eax
  movslq (%rbx,%rax,4),%rax
  add    %rbx,%rax
  notrack jmp *%rax
  lea    D36(%rip),%rdi
  call   <printf@plt>
L85:
  movzbl (%r14),%eax
  add    $0x1,%r14
  test   %al,%al
  jne    L132
L3:
  mov    0x68(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L68
  add    $0x70,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  mov    %r13,%rdi
  call   <printf@plt>
  jmp    L85
  mov    %r12,%rdi
  call   <printf@plt>
  jmp    L85
  mov    %rbp,%rdi
  call   <printf@plt>
  jmp    L85
  lea    D161(%rip),%rdi
  call   <printf@plt>
  jmp    L85
  lea    D103(%rip),%rdi
  call   <printf@plt>
  jmp    L85
  lea    D171(%rip),%rdi
  call   <printf@plt>
  jmp    L85
  lea    D3(%rip),%rdi
  call   <printf@plt>
  jmp    L85
  lea    D7(%rip),%rdi
  call   <printf@plt>
  jmp    L85
  lea    D177(%rip),%rdi
  call   <printf@plt>
  jmp    L85
  lea    D133(%rip),%rdi
  call   <printf@plt>
  jmp    L85
  lea    D47(%rip),%rdi
  call   <printf@plt>
  jmp    L85
  lea    D149(%rip),%rdi
  call   <printf@plt>
  jmp    L85
  lea    D9(%rip),%rdi
  call   <printf@plt>
  jmp    L85
  lea    D46(%rip),%rdi
  call   <printf@plt>
  jmp    L85
  lea    D51(%rip),%rdi
  call   <printf@plt>
  jmp    L85
L68:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: tag: D99
type_infered: string
name: parse_data
arguments: tag: D45
type_infered: string
name: parse_data
arguments: tag: D50
type_infered: string
name: parse_data
arguments: tag: D159
type_infered: string
name: parse_data
arguments: tag: D36
type_infered: string
name: parse_data
arguments: tag: D161
type_infered: string
name: parse_data
arguments: tag: D103
type_infered: string
name: parse_data
arguments: tag: D171
type_infered: string
name: parse_data
arguments: tag: D3
type_infered: string
name: parse_data
arguments: tag: D7
type_infered: string
name: parse_data
arguments: tag: D177
type_infered: string
name: parse_data
arguments: tag: D133
type_infered: string
name: parse_data
arguments: tag: D47
type_infered: string
name: parse_data
arguments: tag: D149
type_infered: string
name: parse_data
arguments: tag: D9
type_infered: string
name: parse_data
arguments: tag: D46
type_infered: string
name: parse_data
arguments: tag: D51
type_infered: string

tool: D99: %s

tool: D45: 1111

tool: D50: 1110

tool: D159: 1101

tool: D36: 0000

tool: D161: 1100

tool: D103: 1011

tool: D171: 1010

tool: D3: 1001

tool: D7: 1000

tool: D177: 0111

tool: D133: 0110

tool: D47: 0101

tool: D149: 0100

tool: D9: 0011

tool: D46: 0010

tool: D51: 0001

assistant: ```c
int main() {
  char hexa[100];
  scanf("%s", &hexa);
  int i = 0;
  while (hexa[i]) {
    switch (hexa[i]) {
    case '0':
      printf("0000");
      break;
    case '1':
      printf("0001");
      break;
    case '2':
      printf("0010");
      break;
    case '3':
      printf("0011");
      break;
    case '4':
      printf("0100");
      break;
    case '5':
      printf("0101");
      break;
    case '6':
      printf("0110");
      break;
    case '7':
      printf("0111");
      break;
    case '8':
      printf("1000");
      break;
    case '9':
      printf("1001");
      break;
    case 'A':
    case 'a':
      printf("1010");
      break;
    case 'B':
    case 'b':
      printf("1011");
      break;
    case 'C':
    case 'c':
      printf("1100");
      break;
    case 'D':
    case 'd':
      printf("1101");
      break;
    case 'E':
    case 'e':
      printf("1110");
      break;
    case 'F':
    case 'f':
      printf("1111");
      break;
    }
    i++;
  }
  return 0;
}
```