user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<exclude_snp_sites_in_block>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %edi,-0x24(%rbp)
  mov    %esi,-0x28(%rbp)
  mov    %rdx,-0x30(%rbp)
  mov    %ecx,-0x34(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,%rsi
  mov    -0x34(%rbp),%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x18(%rbp)
  movslq %eax,%rdx
  mov    %rdx,%r10
  mov    $0x0,%r11d
  movslq %eax,%rdx
  mov    %rdx,%r8
  mov    $0x0,%r9d
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%edi
  mov    $0x0,%edx
  div    %rdi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L65:
  cmp    %rdx,%rsp
  je     L119
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L65
L119:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L85
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L85:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x10(%rbp)
  movl   $0x0,-0x1c(%rbp)
  movl   $0x0,-0x20(%rbp)
  jmp    L90
L98:
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    %eax,-0x24(%rbp)
  jg     L110
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    %eax,-0x28(%rbp)
  jge    L96
L110:
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%ecx
  mov    -0x10(%rbp),%rax
  mov    -0x1c(%rbp),%edx
  movslq %edx,%rdx
  mov    %ecx,(%rax,%rdx,4)
  addl   $0x1,-0x1c(%rbp)
L96:
  addl   $0x1,-0x20(%rbp)
L90:
  mov    -0x20(%rbp),%eax
  cmp    -0x34(%rbp),%eax
  jl     L98
  movl   $0x0,-0x20(%rbp)
  jmp    L55
L74:
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x10(%rbp),%rax
  mov    -0x20(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  mov    %eax,(%rcx)
  addl   $0x1,-0x20(%rbp)
L55:
  mov    -0x20(%rbp),%eax
  cmp    -0x1c(%rbp),%eax
  jl     L74
  mov    -0x1c(%rbp),%eax
  mov    %eax,-0x20(%rbp)
  jmp    L58
L53:
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movl   $0x0,(%rax)
  addl   $0x1,-0x20(%rbp)
L58:
  mov    -0x20(%rbp),%eax
  cmp    -0x34(%rbp),%eax
  jl     L53
  mov    -0x1c(%rbp),%eax
  mov    %rsi,%rsp
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L40
  call   <__stack_chk_fail@plt>
L40:
  leave
  ret
```

assistant: ```c
int exclude_snp_sites_in_block(int window_start_coordinate, int window_end_coordinate, int *snp_site_coords, int number_of_branch_snps) {
  int i;
  int updated_snp_site_coords[number_of_branch_snps];
  int number_of_branch_snps_excluding_block = 0;
  for (i = 0; i < number_of_branch_snps; i++) {
    if (snp_site_coords[i] >= window_start_coordinate && snp_site_coords[i] <= window_end_coordinate) {
    } else {
      updated_snp_site_coords[number_of_branch_snps_excluding_block] = snp_site_coords[i];
      number_of_branch_snps_excluding_block++;
    }
  }
  for (i = 0; i < number_of_branch_snps_excluding_block; i++) {
    snp_site_coords[i] = updated_snp_site_coords[i];
  }
  for (i = number_of_branch_snps_excluding_block; i < number_of_branch_snps; i++) {
    snp_site_coords[i] = 0;
  }
  return number_of_branch_snps_excluding_block;
}
```