user: Translate the below assembly code into C programming language:

```asm
<process_e>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x418,%rsp
  mov    %rdi,%rbx
  mov    %fs:0x28,%rax
  mov    %rax,0x408(%rsp)
  xor    %eax,%eax
  lea    D20(%rip),%rsi
  call   <fopen@plt>
  test   %rax,%rax
  je     L21
  mov    %rax,%rbp
  lea    D17(%rip),%rsi
  lea    D65(%rip),%rdi
  call   <fopen@plt>
  mov    %rax,%r13
  mov    %rsp,%rbx
  lea    D19(%rip),%r12
  lea    0x200(%rsp),%r15
  lea    D44(%rip),%r14
  test   %rax,%rax
  jne    L15
  lea    D65(%rip),%rsi
  lea    D85(%rip),%rdi
  call   <printf@plt>
  jmp    L129
L21:
  mov    %rbx,%rsi
  lea    D9(%rip),%rdi
  call   <printf@plt>
  jmp    L129
L134:
  mov    %rbx,%rsi
  mov    %r15,%rdi
  call   <strcpy@plt>
  mov    %r14,%rsi
  mov    %rbx,%rdi
  call   <strcpy@plt>
  mov    %r12,%rdi
  call   <strlen@plt>
  movslq %eax,%rsi
  mov    %rbx,%rdi
  call   <strcat@plt>
  jmp    L14
L20:
  add    $0x1,%rdx
  cmp    %rax,%rdx
  je     L93
L13:
  cmpb   $0x44,(%rdx)
  jne    L20
  movb   $0x45,(%rdx)
  jmp    L20
L93:
  mov    %r13,%rsi
  mov    %rbx,%rdi
  call   <fputs@plt>
L15:
  mov    %rbp,%rdi
  call   <feof@plt>
  test   %eax,%eax
  jne    L116
  movb   $0x0,(%rsp)
  mov    %rbp,%rdx
  mov    $0x200,%esi
  mov    %rbx,%rdi
  call   <fgets@plt>
  mov    %r12,%rdi
  call   <strlen@plt>
  mov    %eax,%edx
  mov    %r12,%rsi
  mov    %rbx,%rdi
  call   <memcmp@plt>
  test   %rax,%rax
  je     L134
L14:
  mov    %rbx,%rdi
  call   <strlen@plt>
  test   %eax,%eax
  jle    L93
  mov    %rsp,%rdx
  lea    -0x1(%rax),%eax
  lea    0x1(%rsp,%rax,1),%rax
  jmp    L13
L116:
  mov    %rbp,%rdi
  call   <fclose@plt>
  mov    %r13,%rdi
  call   <fclose@plt>
  test   %rax,%rax
  jne    L67
L129:
  mov    0x408(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L22
  add    $0x418,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L67:
  lea    D65(%rip),%rsi
  lea    D56(%rip),%rdi
  call   <printf@plt>
  jmp    L129
L22:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: tag: D20
datatype: string
name: retrieve_data
arguments: tag: D17
datatype: string
name: retrieve_data
arguments: tag: D65
datatype: string
name: retrieve_data
arguments: tag: D19
datatype: string
name: retrieve_data
arguments: tag: D44
datatype: string
name: retrieve_data
arguments: tag: D85
datatype: string
name: retrieve_data
arguments: tag: D9
datatype: string
name: retrieve_data
arguments: tag: D56
datatype: string

tool: D20: r

tool: D17: w

tool: D65: prool.tmp

tool: D19: PERMANENT GROUP

tool: D44: gr

tool: D85: prool_process_e: can't open tmp file `%s'


tool: D9: prool_process_e: can't open input file `%s'


tool: D56: prool_process_e: can't close tmp file `%s'


assistant: ```c
void process_e(char *filename) {
  FILE *f1, *f2;
  char buf[512], *pp;
  char tmp_buf[512];
  int i, len;
  f1 = fopen(filename, "r");
  if (f1 == NULL) {
    printf("prool_process_e: can't open input file `%s'\n", filename);
    return;
  }
  f2 = fopen("prool.tmp", "w");
  if (f2 == NULL) {
    printf("prool_process_e: can't open tmp file `%s'\n", "prool.tmp");
    return;
  }
  while (!feof(f1)) {
    buf[0] = 0;
    fgets(buf, 512, f1);
    if (memcmp(buf, "PERMANENT GROUP", strlen("PERMANENT GROUP")) == 0) {
      strcpy(tmp_buf, buf);
      strcpy(buf, "gr");
      strcat(buf, pp + strlen("PERMANENT GROUP"));
    }
    len = strlen(buf);
    for (i = 0; i < len; i++) {
      if (buf[i] == 'D')
        buf[i] = 'E';
    }
    fputs(buf, f2);
  }
  fclose(f1);
  if (fclose(f2)) {
    printf("prool_process_e: can't close tmp file `%s'\n", "prool.tmp");
    return;
  }
}
```