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

```asm
<supprDescriptorHeader>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x70,%rsp
  mov    %rdi,%rbp
  mov    %rsi,%r12
  mov    %rdx,%r13
  mov    %fs:0x28,%rax
  mov    %rax,0x68(%rsp)
  xor    %eax,%eax
  call   <rewind@plt>
  lea    D108(%rip),%rsi
  mov    %r13,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L88
  lea    D21(%rip),%rsi
  lea    D16(%rip),%rdi
  call   <fopen@plt>
  mov    %rax,%r14
L124:
  test   %r14,%r14
  je     L152
  mov    %rsp,%rbx
L85:
  mov    %rbp,%rdx
  mov    $0x64,%esi
  mov    %rbx,%rdi
  call   <fgets@plt>
  test   %rax,%rax
  je     L140
  mov    %r12,%rsi
  mov    %rbx,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L85
  mov    %r14,%rsi
  mov    %rbx,%rdi
  call   <fputs@plt>
  jmp    L85
L88:
  lea    D176(%rip),%rsi
  mov    %r13,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L74
  lea    D21(%rip),%rsi
  lea    D114(%rip),%rdi
  call   <fopen@plt>
  mov    %rax,%r14
  jmp    L124
L74:
  lea    D195(%rip),%rsi
  mov    %r13,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L124
  lea    D21(%rip),%rsi
  lea    D203(%rip),%rdi
  call   <fopen@plt>
  mov    %rax,%r14
  jmp    L124
L140:
  mov    %r14,%rdi
  call   <fclose@plt>
  mov    %rbp,%rdi
  call   <fclose@plt>
  lea    D108(%rip),%rsi
  mov    %r13,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L135
  lea    D207(%rip),%rbx
  mov    %rbx,%rsi
  lea    D16(%rip),%rdi
  call   <rename@plt>
  lea    D53(%rip),%rsi
  mov    %rbx,%rdi
  call   <fopen@plt>
  mov    $0x0,%eax
L94:
  mov    0x68(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L54
  add    $0x70,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L135:
  lea    D176(%rip),%rsi
  mov    %r13,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L13
  lea    D7(%rip),%rbx
  mov    %rbx,%rsi
  lea    D114(%rip),%rdi
  call   <rename@plt>
  lea    D53(%rip),%rsi
  mov    %rbx,%rdi
  call   <fopen@plt>
  mov    $0x0,%eax
  jmp    L94
L13:
  lea    D195(%rip),%rsi
  mov    %r13,%rdi
  call   <strcmp@plt>
  mov    %rax,%rdx
  mov    $0x0,%eax
  test   %rdx,%rdx
  jne    L94
  lea    D43(%rip),%rbx
  mov    %rbx,%rsi
  lea    D203(%rip),%rdi
  call   <rename@plt>
  lea    D53(%rip),%rsi
  mov    %rbx,%rdi
  call   <fopen@plt>
  mov    $0x0,%eax
  jmp    L94
L152:
  mov    $0xffffffff,%eax
  jmp    L94
L54:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_label: D108
datatype: string
name: retrieve_data
arguments: data_label: D21
datatype: string
name: retrieve_data
arguments: data_label: D16
datatype: string
name: retrieve_data
arguments: data_label: D176
datatype: string
name: retrieve_data
arguments: data_label: D114
datatype: string
name: retrieve_data
arguments: data_label: D195
datatype: string
name: retrieve_data
arguments: data_label: D203
datatype: string
name: retrieve_data
arguments: data_label: D207
datatype: string
name: retrieve_data
arguments: data_label: D53
datatype: string
name: retrieve_data
arguments: data_label: D7
datatype: string
name: retrieve_data
arguments: data_label: D43
datatype: string

tool: D108: sound

tool: D21: w

tool: D16: Bases/liste_base_audio.base.tmp

tool: D176: text

tool: D114: Bases/liste_base_text.base.tmp

tool: D195: image

tool: D203: Bases/liste_base_image.base.tmp

tool: D207: Bases/liste_base_audio.base

tool: D53: a+

tool: D7: Bases/liste_base_text.base

tool: D43: Bases/liste_base_image.base

assistant: ```c
int supprDescriptorHeader(FILE *base, char *line, char *baseType) {
  char buffer[100];
  FILE *bufferFile;
  int i = 0;
  rewind(base);
  if (strcmp(baseType, "sound") == 0) {
    bufferFile = fopen("Bases/liste_base_audio.base.tmp", "w");
  } else if (strcmp(baseType, "text") == 0) {
    bufferFile = fopen("Bases/liste_base_text.base.tmp", "w");
  } else if (strcmp(baseType, "image") == 0) {
    bufferFile = fopen("Bases/liste_base_image.base.tmp", "w");
  }
  if (bufferFile == NULL) {
    return (-1);
  }
  while (fgets(buffer, 100, base)) {
    if (strcmp(buffer, line) != 0) {
      fputs(buffer, bufferFile);
    }
  }
  fclose(bufferFile);
  fclose(base);
  if (strcmp(baseType, "sound") == 0) {
    rename("Bases/liste_base_audio.base.tmp", "Bases/liste_base_audio.base");
    base = fopen("Bases/liste_base_audio.base", "a+");
  } else if (strcmp(baseType, "text") == 0) {
    rename("Bases/liste_base_text.base.tmp", "Bases/liste_base_text.base");
    base = fopen("Bases/liste_base_text.base", "a+");
  } else if (strcmp(baseType, "image") == 0) {
    rename("Bases/liste_base_image.base.tmp", "Bases/liste_base_image.base");
    base = fopen("Bases/liste_base_image.base", "a+");
  }
  return (0);
}
```