user: What would the C source look like for the assembly code provided here:

```asm
<main>:
  endbr64
  push   %r15
  lea    D45(%rip),%rsi
  lea    D24(%rip),%rdi
  push   %r14
  push   %r13
  lea    D63(%rip),%r13
  push   %r12
  push   %rbp
  lea    D52(%rip),%rbp
  push   %rbx
  sub    $0x438,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x428(%rsp)
  xor    %eax,%eax
  call   <fopen@plt>
  lea    D43(%rip),%rsi
  lea    D79(%rip),%rdi
  mov    %rax,0x8(%rsp)
  mov    %rax,%rbx
  call   <fopen@plt>
  mov    %rax,%r12
  lea    0x20(%rsp),%rax
  mov    %rax,(%rsp)
  test   %rbx,%rbx
  je     L28
  nopl   0x0(%rax)
L36:
  mov    0x8(%rsp),%rdx
  mov    (%rsp),%rdi
  mov    $0x400,%esi
  call   <fgets@plt>
  test   %rax,%rax
  je     L74
  mov    (%rsp),%rdi
  mov    %rbp,%rsi
  call   <strtok@plt>
  mov    %rax,%r15
  test   %rax,%rax
  je     L36
  xor    %ebx,%ebx
  lea    0x18(%rsp),%r14
  nopw   0x0(%rax,%rax,1)
L3:
  mov    %r15,%rdi
  call   <strlen@plt>
  mov    %rax,0x18(%rsp)
  cmp    $0x1,%ebx
  je     L55
  mov    %r15,%rdx
  mov    %r13,%rsi
  mov    %r12,%rdi
  call   <fprintf@plt>
L81:
  mov    %rbp,%rsi
  xor    %edi,%edi
  call   <strtok@plt>
  mov    %rax,%r15
  test   %rax,%rax
  je     L36
  mov    %rax,%rdx
  mov    %rbp,%rsi
  mov    %r12,%rdi
  add    $0x1,%ebx
  call   <fprintf@plt>
  jmp    L3
  nopl   (%rax)
L55:
  mov    %r14,%rsi
  mov    %r15,%rdi
  call   <base64encode@plt>
  lea    D41(%rip),%rsi
  mov    %r12,%rdi
  mov    %rax,%rdx
  call   <fprintf@plt>
  jmp    L81
  nopw   0x0(%rax,%rax,1)
L74:
  mov    0x8(%rsp),%rdi
  call   <fclose@plt>
L32:
  mov    %r12,%rdi
  call   <fclose@plt>
  mov    0x428(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L88
  add    $0x438,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L28:
  lea    D50(%rip),%rdi
  call   <printf@plt>
  jmp    L32
L88:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_tag: D45
datatype: string
name: parse_data
arguments: data_tag: D24
datatype: string
name: parse_data
arguments: data_tag: D63
datatype: string
name: parse_data
arguments: data_tag: D52
datatype: string
name: parse_data
arguments: data_tag: D43
datatype: string
name: parse_data
arguments: data_tag: D79
datatype: string
name: parse_data
arguments: data_tag: D41
datatype: string
name: parse_data
arguments: data_tag: D50
datatype: string

tool: D45: r

tool: D24: /tmp/wifi_site_not_encode

tool: D63: %s

tool: D52: $

tool: D43: w

tool: D79: /tmp/wifi_site

tool: D41: %s$

tool: D50: open wifi_site_not_encode fail


assistant: ```c
int main() {
  char *base64enc = NULL;
  FILE *xFile, *oFile;
  unsigned char buf[1024];
  char *delim = "$";
  char *tmp = NULL;
  xFile = fopen("/tmp/wifi_site_not_encode", "r");
  oFile = fopen("/tmp/wifi_site", "w");
  if (xFile == NULL) {
    printf("open wifi_site_not_encode fail\n");
  } else {
    while (fgets(buf, 1024, xFile) != NULL) {
      tmp = strtok(buf, delim);
      int counter = 0;
      while (tmp != NULL) {
        size_t len = strlen(tmp);
        if (counter == 1) {
          base64enc = base64encode(tmp, &len);
          fprintf(oFile, "%s$", base64enc);
        } else
          fprintf(oFile, "%s", tmp);
        tmp = strtok(NULL, delim);
        if (tmp != NULL)
          fprintf(oFile, "$", tmp);
        counter++;
      }
    }
    fclose(xFile);
  }
  fclose(oFile);
  return 0;
}
```