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

```asm
<verifica_login>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x100,%rsp
  mov    %edi,-0xf4(%rbp)
  mov    %esi,-0xf8(%rbp)
  mov    %edx,-0xfc(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0xe4(%rbp)
  movl   $0x0,-0xe0(%rbp)
  movl   $0x0,-0xdc(%rbp)
  lea    D19(%rip),%rax
  mov    %rax,%rsi
  lea    D1(%rip),%rax
  mov    %rax,%rdi
  call   <fopen@plt>
  mov    %rax,-0xd8(%rbp)
  cmpq   $0x0,-0xd8(%rbp)
  je     L130
  jmp    L160
L66:
  mov    -0xd8(%rbp),%rdx
  lea    -0xd0(%rbp),%rax
  mov    $0xc8,%esi
  mov    %rax,%rdi
  call   <fgets@plt>
  lea    -0xd0(%rbp),%rax
  mov    $0x1,%esi
  mov    %rax,%rdi
  call   <captura@plt>
  mov    %eax,%edi
  call   <atoi@plt>
  cmp    %eax,-0xf4(%rbp)
  jne    L160
  lea    -0xd0(%rbp),%rax
  mov    $0x2,%esi
  mov    %rax,%rdi
  call   <captura@plt>
  mov    %eax,%edi
  call   <atoi@plt>
  cmp    %eax,-0xf8(%rbp)
  jne    L160
  lea    -0xd0(%rbp),%rax
  mov    $0x4,%esi
  mov    %rax,%rdi
  call   <captura@plt>
  mov    %eax,%edi
  call   <atoi@plt>
  cmp    $0x2,%eax
  je     L160
  movl   $0x1,-0xdc(%rbp)
  lea    -0xd0(%rbp),%rax
  mov    $0x3,%esi
  mov    %rax,%rdi
  call   <captura@plt>
  mov    %eax,%edi
  call   <atoi@plt>
  cmp    %eax,-0xfc(%rbp)
  jne    L141
  movl   $0x1,-0xe4(%rbp)
L141:
  lea    -0xd0(%rbp),%rax
  mov    $0x4,%esi
  mov    %rax,%rdi
  call   <captura@plt>
  mov    %eax,%edi
  call   <atoi@plt>
  cmp    $0x1,%eax
  jne    L160
  movl   $0x1,-0xe0(%rbp)
L160:
  mov    -0xd8(%rbp),%rax
  mov    %rax,%rdi
  call   <feof@plt>
  test   %eax,%eax
  jne    L71
  cmpl   $0x0,-0xdc(%rbp)
  je     L66
L71:
  mov    -0xd8(%rbp),%rax
  mov    %rax,%rdi
  call   <fclose@plt>
  cmpl   $0x0,-0xdc(%rbp)
  jne    L108
  mov    $0x0,%eax
  jmp    L124
L108:
  cmpl   $0x1,-0xe0(%rbp)
  jne    L106
  mov    $0x3,%eax
  jmp    L124
L106:
  cmpl   $0x0,-0xe4(%rbp)
  jne    L38
  mov    $0x2,%eax
  jmp    L124
L38:
  mov    $0x1,%eax
  jmp    L124
L130:
  mov    $0x4,%eax
L124:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L60
  call   <__stack_chk_fail@plt>
L60:
  leave
  ret
```

tool_calls: name: unpack_data
arguments: data_tag: D19
type_guessed: string
name: unpack_data
arguments: data_tag: D1
type_guessed: string

tool: D19: r

tool: D1: usuarios.txt

assistant: ```c
int verifica_login(int agencia, int cc, int senha) {
  int correta = 0, bloqueada = 0, encontrou = 0;
  FILE *arq_usuarios;
  char buffer[200];
  arq_usuarios = fopen("usuarios.txt", "r");
  if (arq_usuarios != NULL) {
    while ((!feof(arq_usuarios)) && (encontrou == 0)) {
      fgets(buffer, 200, arq_usuarios);
      if ((atoi(captura(buffer, 1)) == agencia) && (atoi(captura(buffer, 2)) == cc) && (atoi(captura(buffer, 4)) != 2)) {
        encontrou = 1;
        if (atoi(captura(buffer, 3)) == senha)
          correta = 1;
        if (atoi(captura(buffer, 4)) == 1)
          bloqueada = 1;
      }
    }
    fclose(arq_usuarios);
    if (encontrou == 0)
      return 0;
    else if (bloqueada == 1)
      return 3;
    else if (correta == 0)
      return 2;
    else
      return 1;
  } else
    return 4;
}
```