user: 下面的汇编指令对应的C源代码是什么：

```asm
<runLengthEncodeComp>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x50,%rsp
  mov    %rdi,-0x48(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x1,-0x30(%rbp)
  mov    -0x48(%rbp),%rax
  mov    %rax,%rdi
  call   <getCaminhoTabela@plt>
  mov    %rax,-0x20(%rbp)
  mov    -0x20(%rbp),%rax
  lea    D34(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <fopen@plt>
  mov    %rax,-0x18(%rbp)
  cmpq   $0x0,-0x18(%rbp)
  jne    L22
  mov    $0x3,%edi
  call   <help@plt>
  mov    $0xffffffff,%edi
  call   <exit@plt>
L22:
  lea    D8(%rip),%rax
  mov    %rax,%rsi
  lea    D27(%rip),%rax
  mov    %rax,%rdi
  call   <fopen@plt>
  mov    %rax,-0x10(%rbp)
  cmpq   $0x0,-0x10(%rbp)
  jne    L28
  lea    D35(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    $0xffffffff,%edi
  call   <exit@plt>
L28:
  mov    -0x18(%rbp),%rdx
  lea    -0x33(%rbp),%rax
  mov    %rdx,%rcx
  mov    $0x1,%edx
  mov    $0x1,%esi
  mov    %rax,%rdi
  call   <fread@plt>
  movb   $0x23,-0x31(%rbp)
  jmp    L37
L3:
  movl   $0x1,-0x30(%rbp)
  jmp    L68
L96:
  addl   $0x1,-0x30(%rbp)
L68:
  mov    -0x18(%rbp),%rdx
  lea    -0x32(%rbp),%rax
  mov    %rdx,%rcx
  mov    $0x1,%edx
  mov    $0x1,%esi
  mov    %rax,%rdi
  call   <fread@plt>
  cmp    $0x1,%eax
  jne    L34
  movzbl -0x33(%rbp),%edx
  movzbl -0x32(%rbp),%eax
  cmp    %al,%dl
  je     L96
L34:
  cmpl   $0x1,-0x30(%rbp)
  jle    L84
  mov    -0x30(%rbp),%eax
  mov    %eax,%edi
  call   <casasDecimais@plt>
  mov    %eax,-0x2c(%rbp)
  mov    -0x2c(%rbp),%eax
  mov    %eax,%edi
  call   <aloca@plt>
  mov    %rax,-0x28(%rbp)
  lea    -0x28(%rbp),%rdx
  mov    -0x30(%rbp),%eax
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <intToString@plt>
  mov    -0x10(%rbp),%rdx
  lea    -0x31(%rbp),%rax
  mov    %rdx,%rcx
  mov    $0x1,%edx
  mov    $0x1,%esi
  mov    %rax,%rdi
  call   <fwrite@plt>
  mov    -0x28(%rbp),%rax
  mov    -0x10(%rbp),%rcx
  mov    -0x2c(%rbp),%edx
  mov    $0x1,%esi
  mov    %rax,%rdi
  call   <fwrite@plt>
  mov    -0x10(%rbp),%rdx
  lea    -0x33(%rbp),%rax
  mov    %rdx,%rcx
  mov    $0x1,%edx
  mov    $0x1,%esi
  mov    %rax,%rdi
  call   <fwrite@plt>
  mov    -0x10(%rbp),%rdx
  lea    -0x31(%rbp),%rax
  mov    %rdx,%rcx
  mov    $0x1,%edx
  mov    $0x1,%esi
  mov    %rax,%rdi
  call   <fwrite@plt>
  jmp    L15
L84:
  mov    -0x10(%rbp),%rdx
  lea    -0x33(%rbp),%rax
  mov    %rdx,%rcx
  mov    $0x1,%edx
  mov    $0x1,%esi
  mov    %rax,%rdi
  call   <fwrite@plt>
L15:
  movzbl -0x32(%rbp),%eax
  mov    %al,-0x33(%rbp)
L37:
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <feof@plt>
  test   %eax,%eax
  je     L3
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <fclose@plt>
  mov    -0x10(%rbp),%rax
  mov    %rax,%rdi
  call   <fclose@plt>
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L61
  call   <__stack_chk_fail@plt>
L61:
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: label: D34
type_infered: string
name: disassemble_data
arguments: label: D8
type_infered: string
name: disassemble_data
arguments: label: D27
type_infered: string
name: disassemble_data
arguments: label: D35
type_infered: string

tool: D34: rb

tool: D8: wb

tool: D27: ../dados/saida.ori

tool: D35: Erro ao abrir o arquivo.


assistant: ```c
void runLengthEncodeComp(char *arquivoEntrada) {
  FILE *ptre, *ptrs;
  char c1, c2, hashtag, *contString, *caminho;
  int retorno, cont = 1, num;
  caminho = getCaminhoTabela(arquivoEntrada);
  ptre = fopen(caminho, "rb");
  if (ptre == NULL) {
    help(3);
    exit(-1);
  }
  ptrs = fopen("../dados/saida.ori", "wb");
  if (ptrs == NULL) {
    printf("Erro ao abrir o arquivo.\n");
    exit(-1);
  }
  fread(&c1, sizeof(char), 1, ptre);
  hashtag = '#';
  while (!feof(ptre)) {
    cont = 1;
    while ((fread(&c2, sizeof(char), 1, ptre) == 1) && (c1 == c2)) {
      cont++;
    }
    if (cont > 1) {
      num = casasDecimais(cont);
      contString = aloca(num);
      intToString(cont, &contString);
      fwrite(&hashtag, sizeof(char), 1, ptrs);
      fwrite(contString, sizeof(char), num, ptrs);
      fwrite(&c1, sizeof(char), 1, ptrs);
      fwrite(&hashtag, sizeof(char), 1, ptrs);
    } else
      fwrite(&c1, sizeof(char), 1, ptrs);
    c1 = c2;
  }
  fclose(ptre);
  fclose(ptrs);
}
```