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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x50,%rsp
  mov    %edi,-0x44(%rbp)
  mov    %rsi,-0x50(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movq   $0x0,-0x30(%rbp)
  movq   $0x0,-0x28(%rbp)
  movl   $0x1,-0x38(%rbp)
  jmp    L38
L41:
  mov    -0x38(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  lea    D5(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <fopen@plt>
  mov    %rax,-0x18(%rbp)
  cmpq   $0x0,-0x18(%rbp)
  je     L101
  jmp    L155
L176:
  mov    -0x18(%rbp),%rdx
  lea    -0x28(%rbp),%rcx
  lea    -0x30(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <getline@plt>
  mov    %rax,-0x10(%rbp)
  cmpq   $0x0,-0x10(%rbp)
  je     L18
  mov    -0x30(%rbp),%rax
  mov    %rax,-0x20(%rbp)
L70:
  mov    -0x20(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x3c,%al
  jne    L207
  mov    -0x20(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  cmp    $0x55,%al
  jne    L207
  mov    -0x20(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isxdigit@plt>
  test   %rax,%rax
  je     L207
  mov    -0x20(%rbp),%rax
  add    $0x3,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isxdigit@plt>
  test   %rax,%rax
  je     L207
  mov    -0x20(%rbp),%rax
  add    $0x4,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isxdigit@plt>
  test   %rax,%rax
  je     L207
  mov    -0x20(%rbp),%rax
  add    $0x5,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isxdigit@plt>
  test   %rax,%rax
  je     L207
  mov    -0x20(%rbp),%rax
  add    $0x6,%rax
  movzbl (%rax),%eax
  cmp    $0x3e,%al
  jne    L207
  mov    -0x20(%rbp),%rax
  add    $0x2,%rax
  mov    $0x10,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <strtoul@plt>
  mov    %eax,-0x34(%rbp)
  cmpl   $0x7f,-0x34(%rbp)
  ja     L201
  mov    -0x34(%rbp),%eax
  mov    %eax,%edi
  call   <putchar@plt>
  jmp    L16
L201:
  cmpl   $0x7ff,-0x34(%rbp)
  ja     L29
  mov    -0x34(%rbp),%eax
  shr    $0x6,%eax
  or     $0xc0,%al
  mov    %eax,%edi
  call   <putchar@plt>
  mov    -0x34(%rbp),%eax
  and    $0x3f,%eax
  or     $0x80,%al
  mov    %eax,%edi
  call   <putchar@plt>
  jmp    L16
L29:
  mov    -0x34(%rbp),%eax
  shr    $0xc,%eax
  or     $0xe0,%al
  mov    %eax,%edi
  call   <putchar@plt>
  mov    -0x34(%rbp),%eax
  shr    $0x6,%eax
  and    $0x3f,%eax
  or     $0x80,%al
  mov    %eax,%edi
  call   <putchar@plt>
  mov    -0x34(%rbp),%eax
  and    $0x3f,%eax
  or     $0x80,%al
  mov    %eax,%edi
  call   <putchar@plt>
L16:
  addq   $0x7,-0x20(%rbp)
  jmp    L169
L207:
  mov    -0x20(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x20(%rbp)
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <putchar@plt>
L169:
  mov    -0x30(%rbp),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  cmp    %rax,-0x20(%rbp)
  jb     L70
L155:
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <feof@plt>
  test   %eax,%eax
  je     L176
  jmp    L170
L18:
  nop
L170:
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <fclose@plt>
  jmp    L90
L101:
  nop
L90:
  addl   $0x1,-0x38(%rbp)
L38:
  mov    -0x38(%rbp),%eax
  cmp    -0x44(%rbp),%eax
  jl     L41
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L164
  call   <__stack_chk_fail@plt>
L164:
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: label: D5
datatype: string

tool: D5: r

assistant: ```c
int main(int argc, char *argv[]) {
  int n;
  char *line = NULL;
  size_t len = 0;
  for (n = 1; n < argc; ++n) {
    FILE *fp = fopen(argv[n], "r");
    if (fp == NULL)
      continue;
    while (!feof(fp)) {
      ssize_t cnt = getline(&line, &len, fp);
      char *runp;
      if (cnt <= 0)
        break;
      runp = line;
      do {
        if (runp[0] == '<' && runp[1] == 'U' && isxdigit(runp[2]) && isxdigit(runp[3]) && isxdigit(runp[4]) && isxdigit(runp[5]) && runp[6] == '>') {
          unsigned int val = strtoul(runp + 2, NULL, 16);
          if (val < 128)
            putchar(val);
          else if (val < 0x800) {
            putchar(0xc0 | (val >> 6));
            putchar(0x80 | (val & 0x3f));
          } else {
            putchar(0xe0 | (val >> 12));
            putchar(0x80 | ((val >> 6) & 0x3f));
            putchar(0x80 | (val & 0x3f));
          }
          runp += 7;
        } else
          putchar(*runp++);
      } while (runp < &line[cnt]);
    }
    fclose(fp);
  }
  return 0;
}
```