user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<hex2bin>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  mov    %rdi,%r13
  push   %r12
  lea    0x10(%rdi),%r12
  push   %rbp
  mov    %rsi,%rbp
  push   %rbx
  lea    D126(%rip),%rbx
  sub    $0x18,%rsp
  movl   $0x7,0xc(%rsp)
L70:
  mov    %r13,%r14
  lea    D49(%rip),%r15
  nopl   (%rax)
L178:
  movsbl (%r14),%esi
  lea    -0x30(%rsi),%eax
  cmp    $0x36,%al
  ja     L109
  movzbl %al,%eax
  movslq (%rbx,%rax,4),%rax
  add    %rbx,%rax
  notrack jmp *%rax
L109:
  lea    D27(%rip),%rdi
  call   <printf@plt>
  add    $0x18,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
  lea    D13(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcat@plt>
  nop
L158:
  add    $0x1,%r14
  cmp    %r12,%r14
  jne    L178
  subl   $0x1,0xc(%rsp)
  jne    L70
  add    $0x18,%rsp
  mov    $0x1,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
  lea    D46(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcat@plt>
  jmp    L158
  nopl   0x0(%rax)
  mov    %r15,%rsi
  mov    %rbp,%rdi
  call   <strcat@plt>
  jmp    L158
  nopl   (%rax)
  lea    D66(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcat@plt>
  jmp    L158
  nopl   0x0(%rax)
  lea    D123(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcat@plt>
  jmp    L158
  nopl   0x0(%rax)
  lea    D85(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcat@plt>
  jmp    L158
  nopl   0x0(%rax)
  lea    D149(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcat@plt>
  jmp    L158
  nopl   0x0(%rax)
  lea    D74(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcat@plt>
  jmp    L158
  nopl   0x0(%rax)
  lea    D22(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcat@plt>
  jmp    L158
  nopl   0x0(%rax)
  lea    D33(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcat@plt>
  jmp    L158
  nopl   0x0(%rax)
  lea    D119(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcat@plt>
  jmp    L158
  nopl   0x0(%rax)
  lea    D158(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcat@plt>
  jmp    L158
  nopl   0x0(%rax)
  lea    D174(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcat@plt>
  jmp    L158
  nopl   0x0(%rax)
  lea    D88(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcat@plt>
  jmp    L158
  nopl   0x0(%rax)
  lea    D42(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcat@plt>
  jmp    L158
  nopl   0x0(%rax)
  lea    D9(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcat@plt>
  jmp    L158
```

tool_calls: name: read_data
arguments: data_label: D49
type_guessed: string
name: read_data
arguments: data_label: D27
type_guessed: string
name: read_data
arguments: data_label: D13
type_guessed: string
name: read_data
arguments: data_label: D46
type_guessed: string
name: read_data
arguments: data_label: D66
type_guessed: string
name: read_data
arguments: data_label: D123
type_guessed: string
name: read_data
arguments: data_label: D85
type_guessed: string
name: read_data
arguments: data_label: D149
type_guessed: string
name: read_data
arguments: data_label: D74
type_guessed: string
name: read_data
arguments: data_label: D22
type_guessed: string
name: read_data
arguments: data_label: D33
type_guessed: string
name: read_data
arguments: data_label: D119
type_guessed: string
name: read_data
arguments: data_label: D158
type_guessed: string
name: read_data
arguments: data_label: D174
type_guessed: string
name: read_data
arguments: data_label: D88
type_guessed: string
name: read_data
arguments: data_label: D42
type_guessed: string
name: read_data
arguments: data_label: D9
type_guessed: string

tool: D49: 1101

tool: D27: 
 Invalid hex digit %c 

tool: D13: 1111

tool: D46: 1110

tool: D66: 1100

tool: D123: 1011

tool: D85: 1010

tool: D149: 1001

tool: D74: 1000

tool: D22: 0111

tool: D33: 0110

tool: D119: 0101

tool: D158: 0100

tool: D174: 0011

tool: D88: 0010

tool: D42: 0001

tool: D9: 0000

assistant: ```c
int hex2bin(char *hex, char *bin) {
  int i, j;
  for (j = 0; j < 7; j++)
    for (i = 0; i < 16; i++) {
      switch (hex[i]) {
      case '0':
        strcat(bin, "0000");
        break;
      case '1':
        strcat(bin, "0001");
        break;
      case '2':
        strcat(bin, "0010");
        break;
      case '3':
        strcat(bin, "0011");
        break;
      case '4':
        strcat(bin, "0100");
        break;
      case '5':
        strcat(bin, "0101");
        break;
      case '6':
        strcat(bin, "0110");
        break;
      case '7':
        strcat(bin, "0111");
        break;
      case '8':
        strcat(bin, "1000");
        break;
      case '9':
        strcat(bin, "1001");
        break;
      case 'a':
        strcat(bin, "1010");
        break;
      case 'b':
        strcat(bin, "1011");
        break;
      case 'c':
        strcat(bin, "1100");
        break;
      case 'd':
        strcat(bin, "1101");
        break;
      case 'e':
        strcat(bin, "1110");
        break;
      case 'f':
        strcat(bin, "1111");
        break;
      default:
        printf("\n Invalid hex digit %c ", hex[i]);
        return 0;
      }
    }
  return 1;
}
```