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

```asm
<analise_fifo_m>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  mov    %rsi,%r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  mov    %edi,%ebx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  movslq %edi,%rax
  mov    %rsp,%rcx
  mov    %rax,-0x48(%rbp)
  shl    $0x2,%rax
  mov    %rax,-0x50(%rbp)
  add    $0xf,%rax
  mov    %rax,%rsi
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rsi
  and    $0xfffffffffffffff0,%rdx
  sub    %rsi,%rcx
  cmp    %rcx,%rsp
  je     L67
L102:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rcx,%rsp
  jne    L102
L67:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  jne    L189
L130:
  mov    %rax,%rdx
  mov    %rsp,%rcx
  and    $0xfffffffffffff000,%rax
  mov    %rsp,%r12
  sub    %rax,%rcx
  and    $0xfffffffffffffff0,%rdx
  cmp    %rcx,%rsp
  je     L166
L16:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rcx,%rsp
  jne    L16
L166:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  jne    L175
L169:
  mov    %rsp,%r13
  test   %ebx,%ebx
  jle    L79
  xor    %r14d,%r14d
  nop
L30:
  mov    (%r15,%r14,4),%edi
  mov    %r13,%rcx
  mov    %ebx,%edx
  mov    %r12,%rsi
  call   <quadro_ausente_fifo_m@plt>
  test   %eax,%eax
  je     L146
  mov    (%r15,%r14,4),%eax
  mov    %eax,(%r12,%r14,4)
L146:
  add    $0x1,%r14
  cmp    -0x48(%rbp),%r14
  jne    L30
  mov    -0x50(%rbp),%r14
  movslq %ebx,%rax
  add    %r15,%r14
L4:
  mov    (%r14),%edi
  test   %edi,%edi
  jle    L115
  movl   $0x0,-0x48(%rbp)
  lea    0x4(%r15,%rax,4),%r15
  jmp    L63
  nopw   0x0(%rax,%rax,1)
L182:
  mov    %r15,%r14
  mov    (%r15),%edi
  add    $0x4,%r15
  test   %edi,%edi
  jle    L25
L63:
  mov    %r13,%rcx
  mov    %ebx,%edx
  mov    %r12,%rsi
  call   <quadro_ausente_fifo_m@plt>
  test   %eax,%eax
  je     L182
  mov    %r13,%rdi
  mov    %ebx,%esi
  addl   $0x1,-0x48(%rbp)
  call   <calc_posicao_fifo_m@plt>
  mov    (%r14),%edx
  mov    %r15,%r14
  mov    (%r15),%edi
  cltq
  add    $0x4,%r15
  mov    %edx,(%r12,%rax,4)
  test   %edi,%edi
  jg     L63
L25:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L131
  mov    -0x48(%rbp),%eax
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
  nopl   (%rax)
L189:
  orq    $0x0,-0x8(%rsp,%rdx,1)
  jmp    L130
  nopl   0x0(%rax,%rax,1)
L115:
  movl   $0x0,-0x48(%rbp)
  jmp    L25
L79:
  mov    %r15,%r14
  xor    %eax,%eax
  jmp    L4
L175:
  orq    $0x0,-0x8(%rsp,%rdx,1)
  jmp    L169
L131:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int analise_fifo_m(int numero_de_quadros, int *referencias) {
  int vetor_quadros[numero_de_quadros], vetor_alloc[numero_de_quadros];
  int cont, cont_alloc;
  int page_fault;
  int qtd_page_fault = 0;
  for (cont = 0; cont < numero_de_quadros; cont++) {
    page_fault = quadro_ausente_fifo_m(referencias[cont], vetor_quadros, numero_de_quadros, vetor_alloc);
    if (page_fault) {
      vetor_quadros[cont] = referencias[cont];
    }
  }
  while (referencias[cont] > 0) {
    page_fault = quadro_ausente_fifo_m(referencias[cont], vetor_quadros, numero_de_quadros, vetor_alloc);
    if (page_fault) {
      qtd_page_fault++;
      cont_alloc = calc_posicao_fifo_m(vetor_alloc, numero_de_quadros);
      vetor_quadros[cont_alloc] = referencias[cont];
    };
    cont++;
  }
  return qtd_page_fault;
}
```