user: What is the c source code of the assembly code below?

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x1b8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x1a8(%rsp)
  xor    %eax,%eax
  lea    D25(%rip),%rsi
  lea    D49(%rip),%rdi
  call   <fopen@plt>
  mov    %rax,(%rsp)
  lea    D40(%rip),%rsi
  lea    D6(%rip),%rdi
  call   <fopen@plt>
  mov    %rax,0x8(%rsp)
  lea    0x10(%rsp),%rbp
  mov    $0x1,%r15d
  jmp    L128
L54:
  movslq %r12d,%r12
  movb   $0x0,0xe0(%rsp,%r12,1)
L164:
  lea    0xe0(%rsp),%rdx
  lea    D58(%rip),%rsi
  mov    0x8(%rsp),%rdi
  call   <fprintf@plt>
L128:
  mov    (%rsp),%rdx
  mov    $0xc8,%esi
  mov    %rbp,%rdi
  call   <fgets@plt>
  test   %rax,%rax
  je     L127
  mov    %rbp,%rsi
  lea    D36(%rip),%rdi
  call   <printf@plt>
  movb   $0x22,0xe0(%rsp)
  mov    $0x0,%ebx
  mov    %r15d,%r13d
  mov    $0x0,%r14d
  mov    $0x1,%r12d
  jmp    L25
L49:
  movslq %r12d,%rcx
  movb   $0x22,0xe0(%rsp,%rcx,1)
  add    $0x1,%r12d
  test   %r14d,%r14d
  je     L75
  test   %dl,%dl
  jne    L150
L75:
  mov    $0x0,%r13d
L8:
  movslq %r12d,%rdx
  mov    %al,0xe0(%rsp,%rdx,1)
  add    $0x1,%r12d
L62:
  add    $0x1,%rbx
L25:
  mov    %rbp,%rdi
  call   <strlen@plt>
  cmp    %ebx,%eax
  jle    L164
  movzbl (%rbx,%rbp,1),%eax
  cmp    $0xa,%al
  je     L54
  cmp    $0x2c,%al
  sete   %dl
  test   %r13d,%r13d
  je     L36
  test   %dl,%dl
  jne    L49
L36:
  cmp    $0x22,%al
  je     L4
  test   %r14d,%r14d
  je     L56
  test   %dl,%dl
  jne    L79
L56:
  test   %r13d,%r13d
  jne    L8
  cmp    $0x20,%al
  jne    L8
  mov    $0x0,%r13d
  jmp    L62
L4:
  xor    $0x1,%r14d
  jmp    L62
L150:
  mov    $0x0,%r13d
L79:
  movslq %r12d,%rax
  movb   $0x2e,0xe0(%rsp,%rax,1)
  add    $0x1,%r12d
  jmp    L62
L127:
  mov    0x1a8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L1
  mov    $0x0,%eax
  add    $0x1b8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L1:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_tag: D25
type_guessed: string
name: parse_data
arguments: data_tag: D49
type_guessed: string
name: parse_data
arguments: data_tag: D40
type_guessed: string
name: parse_data
arguments: data_tag: D6
type_guessed: string
name: parse_data
arguments: data_tag: D58
type_guessed: string
name: parse_data
arguments: data_tag: D36
type_guessed: string

tool: D25: r

tool: D49: ../brutos/lixo_coletado.csv

tool: D40: w

tool: D6: ../tratados/lixo_coletado.csv

tool: D58: %s,2000


tool: D36: %s


assistant: ```c
int main() {
  char linhaOriginal[200], linhaSaida[200];
  FILE *entrada, *saida;
  int i, j;
  int aspas;
  int nomeCidade;
  entrada = fopen("../brutos/lixo_coletado.csv", "r");
  saida = fopen("../tratados/lixo_coletado.csv", "w");
  while (fgets(linhaOriginal, 200, entrada) != NULL) {
    aspas = 0;
    j = 0;
    nomeCidade = 1;
    printf("%s\n", linhaOriginal);
    linhaSaida[j] = '"';
    j++;
    for (i = 0; i < strlen(linhaOriginal); i++) {
      if (linhaOriginal[i] == '\n') {
        linhaSaida[j] = '\0';
        break;
      }
      if (linhaOriginal[i] == ',' && nomeCidade == 1) {
        nomeCidade = 0;
        linhaSaida[j] = '"';
        j++;
      }
      if (linhaOriginal[i] == '"') {
        if (aspas == 1) {
          aspas = 0;
        } else {
          aspas = 1;
        }
        continue;
      }
      if (aspas && linhaOriginal[i] == ',') {
        linhaSaida[j] = '.';
        j++;
        continue;
      }
      if (linhaOriginal[i] != ' ' || nomeCidade) {
        linhaSaida[j] = linhaOriginal[i];
        j++;
        continue;
      }
    }
    fprintf(saida, "%s,2000\n", linhaSaida);
  }
  return 0;
}
```