user: Please show me the C implementation that matches the assembly code listed below:

```asm
<process>:
  endbr64
  push   %r15
  push   %r14
  lea    D40(%rip),%r14
  push   %r13
  lea    D33(%rip),%r13
  push   %r12
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  xor    %ebx,%ebx
  sub    $0x128,%rsp
  mov    %esi,0xc(%rsp)
  lea    D13(%rip),%rsi
  lea    0x10(%rsp),%r15
  mov    %fs:0x28,%rax
  mov    %rax,0x118(%rsp)
  xor    %eax,%eax
  call   <fopen@plt>
  mov    %rax,%r12
  test   %rax,%rax
  je     L21
  nopl   0x0(%rax)
L65:
  mov    %r12,%rdx
  mov    $0xff,%esi
  mov    %r15,%rdi
  call   <fgets@plt>
  test   %rax,%rax
  je     L85
  mov    $0xa,%esi
  mov    %r15,%rdi
  add    $0x1,%ebx
  call   <strchr@plt>
  test   %rax,%rax
  je     L66
  movslq 0xc(%rsp),%rdx
  sub    %r15,%rax
  cmp    %rdx,%rax
  jle    L18
L66:
  mov    %r15,%rcx
  mov    %ebx,%edx
  mov    %rbp,%rsi
  mov    %r14,%rdi
  xor    %eax,%eax
  call   <printf@plt>
L18:
  mov    $0x9,%esi
  mov    %r15,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  je     L82
  sub    %r15,%rax
  mov    %r15,%r8
  mov    %ebx,%edx
  mov    %rbp,%rsi
  mov    %rax,%rcx
  lea    D30(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
L82:
  mov    %r13,%rsi
  mov    %r15,%rdi
  call   <strstr@plt>
  test   %rax,%rax
  je     L65
  sub    %r15,%rax
  mov    %r15,%r8
  mov    %ebx,%edx
  mov    %rbp,%rsi
  mov    %rax,%rcx
  lea    D49(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L65
L85:
  mov    %r12,%rdi
  call   <fclose@plt>
  mov    0x118(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L0
  add    $0x128,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L21:
  mov    0x118(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L0
  add    $0x128,%rsp
  mov    %rbp,%rsi
  lea    D32(%rip),%rdi
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    10e0 <printf@plt>
L0:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_tag: D40
type_guessed: string
name: retrieve_data
arguments: data_tag: D33
type_guessed: string
name: retrieve_data
arguments: data_tag: D13
type_guessed: string
name: retrieve_data
arguments: data_tag: D30
type_guessed: string
name: retrieve_data
arguments: data_tag: D49
type_guessed: string
name: retrieve_data
arguments: data_tag: D32
type_guessed: string

tool: D40: File=%s Line=%d:
%s


tool: D33:  


tool: D13: r

tool: D30: File=%s Line=%d tab at %d
%s


tool: D49: File=%s Line=%d extra space at %d
%s


tool: D32: File=%s does not exist


assistant: ```c
void process(char *name, int width) {
  FILE *ff = fopen(name, "r");
  char buffer[256];
  int count = 0;
  if (ff == NULL) {
    printf("File=%s does not exist\n", name);
    return;
  }
  while (1) {
    char *p;
    if (fgets(buffer, 255, ff) == NULL)
      break;
    count++;
    p = strchr(buffer, '\n');
    if (p == NULL || (p - buffer) > width) {
      printf("File=%s Line=%d:\n%s\n", name, count, buffer);
    }
    p = strchr(buffer, '\t');
    if (p != NULL)
      printf("File=%s Line=%d tab at %d\n%s\n", name, count, p - buffer, buffer);
    p = strstr(buffer, " \n");
    if (p != NULL)
      printf("File=%s Line=%d extra space at %d\n%s\n", name, count, p - buffer, buffer);
  }
  fclose(ff);
  return;
}
```