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

```asm
<htoi>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x98,%rsp
  mov    %rdi,%rbx
  mov    %rsi,%r13
  mov    %rdx,%rbp
  mov    %fs:0x28,%rax
  mov    %rax,0x88(%rsp)
  xor    %eax,%eax
  lea    D89(%rip),%rdx
  lea    D53(%rip),%rsi
  mov    %rbp,%rdi
  call   <sprintf@plt>
  movzbl (%rbx),%eax
  lea    D127(%rip),%rdi
  mov    %rdi,(%rsp)
  lea    D27(%rip),%rdi
  mov    %rdi,0x8(%rsp)
  lea    D128(%rip),%rdi
  mov    %rdi,0x10(%rsp)
  lea    D133(%rip),%rdi
  mov    %rdi,0x18(%rsp)
  lea    D132(%rip),%rcx
  mov    %rcx,0x20(%rsp)
  lea    D119(%rip),%rdi
  mov    %rdi,0x28(%rsp)
  lea    D74(%rip),%rcx
  mov    %rcx,0x30(%rsp)
  lea    D154(%rip),%rdi
  mov    %rdi,0x38(%rsp)
  lea    D55(%rip),%rcx
  mov    %rcx,0x40(%rsp)
  lea    D144(%rip),%rsi
  mov    %rsi,0x48(%rsp)
  lea    D80(%rip),%rdi
  mov    %rdi,0x50(%rsp)
  lea    D52(%rip),%rdx
  mov    %rdx,0x58(%rsp)
  lea    D102(%rip),%rcx
  mov    %rcx,0x60(%rsp)
  lea    D152(%rip),%rsi
  mov    %rsi,0x68(%rsp)
  lea    D118(%rip),%rdi
  mov    %rdi,0x70(%rsp)
  lea    D174(%rip),%rdx
  mov    %rdx,0x78(%rsp)
  cmp    $0x20,%al
  je     L90
  cmp    $0x9,%al
  jne    L66
L90:
  add    $0x1,%rbx
  movzbl (%rbx),%eax
  cmp    $0x20,%al
  je     L90
  cmp    $0x9,%al
  je     L90
L66:
  lea    0x5(%rbx),%r12
  jmp    L106
L50:
  movsbl %al,%eax
  sub    $0x30,%eax
  cltq
  mov    (%rsp,%rax,8),%rsi
  mov    $0x4,%edx
  mov    %rbp,%rdi
  call   <strncat@plt>
L26:
  add    $0x1,%rbx
  movzbl (%rbx),%eax
  cmp    %r12,%rbx
  je     L110
L106:
  mov    %eax,%edx
  lea    -0x30(%rax),%ecx
  cmp    $0x9,%cl
  jbe    L50
  lea    -0x41(%rax),%ecx
  cmp    $0x5,%cl
  jbe    L6
  sub    $0x61,%edx
  cmp    $0x5,%dl
  ja     L26
  movsbl %al,%eax
  sub    $0x57,%eax
  cltq
  mov    (%rsp,%rax,8),%rsi
  mov    $0x4,%edx
  mov    %rbp,%rdi
  call   <strncat@plt>
  jmp    L26
L6:
  movsbl %al,%eax
  sub    $0x37,%eax
  cltq
  mov    (%rsp,%rax,8),%rsi
  mov    $0x4,%edx
  mov    %rbp,%rdi
  call   <strncat@plt>
  jmp    L26
L110:
  movzbl 0x0(%rbp),%eax
  mov    %al,0x0(%r13)
  mov    0x88(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L86
  add    $0x98,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L86:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: label: D89
datatype: string
name: extract_symbolic_data
arguments: label: D53
datatype: string
name: extract_symbolic_data
arguments: label: D127
datatype: string
name: extract_symbolic_data
arguments: label: D27
datatype: string
name: extract_symbolic_data
arguments: label: D128
datatype: string
name: extract_symbolic_data
arguments: label: D133
datatype: string
name: extract_symbolic_data
arguments: label: D132
datatype: string
name: extract_symbolic_data
arguments: label: D119
datatype: string
name: extract_symbolic_data
arguments: label: D74
datatype: string
name: extract_symbolic_data
arguments: label: D154
datatype: string
name: extract_symbolic_data
arguments: label: D55
datatype: string
name: extract_symbolic_data
arguments: label: D144
datatype: string
name: extract_symbolic_data
arguments: label: D80
datatype: string
name: extract_symbolic_data
arguments: label: D52
datatype: string
name: extract_symbolic_data
arguments: label: D102
datatype: string
name: extract_symbolic_data
arguments: label: D152
datatype: string
name: extract_symbolic_data
arguments: label: D118
datatype: string
name: extract_symbolic_data
arguments: label: D174
datatype: string

tool: 

tool: D53: %s

tool: D127: 0000

tool: D27: 0001

tool: D128: 0010

tool: D133: 0011

tool: D132: 0100

tool: D119: 0101

tool: D74: 0110

tool: D154: 0111

tool: D55: 1000

tool: D144: 1001

tool: D80: 1010

tool: D52: 1011

tool: D102: 1100

tool: D152: 1101

tool: D118: 1110

tool: D174: 1111

assistant: ```c
void htoi(const char *ptr, char *binAddr, char value[32]) {
  sprintf(value, "%s", "");
  char ch = *ptr;
  int i;
  const char *quads[] = {"0000", "0001", "0010", "0011", "0100", "0101", "0110", "0111", "1000", "1001", "1010", "1011", "1100", "1101", "1110", "1111"};
  while (ch == ' ' || ch == '\t')
    ch = *(++ptr);
  for (i = 0; i < 5; i++) {
    if (ch >= '0' && ch <= '9')
      strncat(value, quads[ch - '0'], 4);
    if (ch >= 'A' && ch <= 'F')
      strncat(value, quads[10 + ch - 'A'], 4);
    if (ch >= 'a' && ch <= 'f')
      strncat(value, quads[10 + ch - 'a'], 4);
    ch = *(++ptr);
  }
  *binAddr = *value;
}
```