user: 这段汇编代码用C语言表示是什么样的?

```asm
<get_blocks>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %rdi,%r15
  mov    %esi,%r12d
  mov    %rdx,%rbx
  mov    %ecx,0x18(%rsp)
  mov    %r8d,0xc(%rsp)
  mov    %r9d,0x1c(%rsp)
  mov    0x70(%rsp),%rbp
  mov    0x78(%rsp),%r13
  lea    0x1(%rsi),%r14d
  mov    $0x4,%esi
  mov    %r14d,%edi
  call   <calloc@plt>
  mov    %rax,0x10(%rsp)
  mov    $0x4,%esi
  mov    %r14d,%edi
  call   <calloc@plt>
  mov    %rax,%r14
  cmpl   $0x0,0x80(%rsp)
  jle    L188
  mov    0x80(%rsp),%ecx
  mov    $0x0,%eax
  jmp    L298
L219:
  movslq 0x0(%r13,%rax,4),%rdx
  movl   $0x1,-0x4(%r14,%rdx,4)
L187:
  add    $0x1,%rax
  cmp    %rcx,%rax
  je     L188
L298:
  movzbl 0x0(%rbp,%rax,1),%edx
  cmp    $0x4e,%dl
  je     L219
  cmp    $0x2d,%dl
  jne    L187
  jmp    L219
L188:
  mov    0x18(%rsp),%esi
  test   %esi,%esi
  jle    L53
  mov    0xc(%rsp),%edi
  mov    %edi,%eax
  shr    $0x1f,%eax
  add    %edi,%eax
  sar    %eax
  neg    %eax
  mov    %eax,0xc(%rsp)
  mov    %rbx,%r13
  lea    -0x1(%rsi),%eax
  lea    0x4(%rbx,%rax,4),%rbp
  mov    0x10(%rsp),%rax
  add    $0x4,%rax
  mov    %r15,0x20(%rsp)
  mov    %rbx,0x28(%rsp)
  mov    %rax,%r15
L258:
  mov    0x0(%r13),%edi
  mov    0xc(%rsp),%eax
  lea    (%rdi,%rax,1),%esi
  sub    $0x1,%edi
  mov    %r14,%rcx
  mov    %r12d,%edx
  call   <extend_lower_part_of_window@plt>
  test   %eax,%eax
  mov    $0x0,%edx
  mov    %edx,%ebx
  cmovns %eax,%ebx
  mov    0x0(%r13),%edi
  mov    %edi,%esi
  sub    0xc(%rsp),%esi
  add    $0x1,%edi
  mov    %r14,%rcx
  mov    %r12d,%edx
  call   <extend_upper_part_of_window@plt>
  cmp    %eax,%r12d
  cmovle %r12d,%eax
  cmp    %eax,%ebx
  jge    L311
  movslq %ebx,%rcx
  mov    0x10(%rsp),%rdi
  lea    (%rdi,%rcx,4),%rdx
  sub    $0x1,%eax
  sub    %ebx,%eax
  add    %rcx,%rax
  lea    (%r15,%rax,4),%rax
L54:
  addl   $0x1,(%rdx)
  add    $0x4,%rdx
  cmp    %rax,%rdx
  jne    L54
L311:
  add    $0x4,%r13
  cmp    %rbp,%r13
  jne    L258
  mov    0x20(%rsp),%r15
  mov    0x28(%rsp),%rbx
L53:
  test   %r12d,%r12d
  jle    L62
  mov    0x10(%rsp),%rdx
  mov    $0x0,%eax
  mov    $0x0,%edi
  mov    $0x0,%esi
  mov    $0x0,%ebp
  mov    $0x0,%r9d
  mov    $0x1,%r8d
  mov    0x1c(%rsp),%r10d
  jmp    L17
L21:
  lea    0x1(%rax),%ecx
  cmp    %ecx,%r12d
  jne    L247
  cmp    $0x1,%esi
  je     L316
L18:
  test   %ebp,%ebp
  jle    L76
  mov    0x18(%rsp),%r10d
  lea    -0x1(%r10),%r9d
  mov    %ebp,%r8d
  shl    $0x2,%r8
  mov    %r9d,%eax
  lea    0x4(%rbx,%rax,4),%rsi
  mov    $0x0,%edi
  jmp    L169
L101:
  mov    %eax,%edi
  jmp    L316
L229:
  mov    %edx,(%r11)
L111:
  mov    %rdi,%r11
  add    0x8(%r15),%r11
  mov    (%r11),%ecx
  movslq %r9d,%rax
L138:
  mov    (%rbx,%rax,4),%edx
  cmp    %ecx,%edx
  jle    L180
  sub    $0x1,%rax
  test   %eax,%eax
  jns    L138
  jmp    L309
L83:
  test   %r9d,%r9d
  js     L309
  jmp    L111
L180:
  mov    %edx,(%r11)
L309:
  add    $0x4,%rdi
  cmp    %r8,%rdi
  je     L76
L169:
  test   %r10d,%r10d
  jle    L83
  mov    %rdi,%r11
  add    (%r15),%r11
  mov    (%r11),%ecx
  mov    %rbx,%rax
L161:
  mov    (%rax),%edx
  cmp    %ecx,%edx
  jge    L229
  add    $0x4,%rax
  cmp    %rsi,%rax
  jne    L161
  jmp    L111
L62:
  mov    $0x0,%ebp
L76:
  mov    %r14,%rdi
  call   <free@plt>
  mov    0x10(%rsp),%rdi
  call   <free@plt>
  mov    %ebp,%eax
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L32:
  lea    0x1(%rax),%ecx
  cmp    %ecx,%r12d
  je     L101
  mov    %eax,%edi
  mov    %r8d,%esi
L247:
  add    $0x1,%eax
  add    $0x4,%rdx
  cmp    %eax,%r12d
  je     L18
L17:
  mov    (%rdx),%ecx
  test   %esi,%esi
  jne    L116
  cmp    %r10d,%ecx
  jg     L32
L116:
  cmp    %r10d,%ecx
  jg     L21
  cmp    $0x1,%esi
  jne    L247
L316:
  movslq %ebp,%rcx
  mov    (%r15),%rsi
  mov    %edi,(%rsi,%rcx,4)
  mov    0x8(%r15),%rsi
  lea    -0x1(%rax),%r11d
  mov    %r11d,(%rsi,%rcx,4)
  add    $0x1,%ebp
  mov    %r9d,%esi
  jmp    L247
```

assistant: ```c
int get_blocks(int **block_coordinates, int genome_size, int *snp_site_coords, int number_of_branch_snps, int window_size, int cutoff, char *original_sequence, int *snp_locations, int number_of_snps) {
  int *window_count;
  window_count = (int *)calloc((genome_size + 1), sizeof(int));
  int *gaps_in_original_genome_space;
  gaps_in_original_genome_space = (int *)calloc((genome_size + 1), sizeof(int));
  int x = 0;
  for (x = 0; x < number_of_snps; x++) {
    if (original_sequence[x] == 'N' || original_sequence[x] == '-') {
      gaps_in_original_genome_space[snp_locations[x] - 1] = 1;
    }
  }
  int snp_counter = 0;
  for (snp_counter = 0; snp_counter < number_of_branch_snps; snp_counter++) {
    int j = 0;
    int snp_sliding_window_counter = snp_site_coords[snp_counter] - (window_size / 2);
    snp_sliding_window_counter = extend_lower_part_of_window(snp_site_coords[snp_counter] - 1, snp_sliding_window_counter, genome_size, gaps_in_original_genome_space);
    if (snp_sliding_window_counter < 0) {
      snp_sliding_window_counter = 0;
    }
    int max_snp_sliding_window_counter = snp_site_coords[snp_counter] + (window_size / 2);
    max_snp_sliding_window_counter = extend_upper_part_of_window(snp_site_coords[snp_counter] + 1, max_snp_sliding_window_counter, genome_size, gaps_in_original_genome_space);
    if (max_snp_sliding_window_counter > genome_size) {
      max_snp_sliding_window_counter = genome_size;
    }
    for (j = snp_sliding_window_counter; j < max_snp_sliding_window_counter; j++) {
      window_count[j] += 1;
    }
  }
  int number_of_blocks = 0;
  int in_block = 0;
  int block_lower_bound = 0;
  int i;
  for (i = 0; i < genome_size; i++) {
    if (window_count[i] > cutoff && in_block == 0) {
      block_lower_bound = i;
      in_block = 1;
    }
    if ((window_count[i] <= cutoff || i + 1 == genome_size) && in_block == 1) {
      block_coordinates[0][number_of_blocks] = block_lower_bound;
      block_coordinates[1][number_of_blocks] = i - 1;
      number_of_blocks++;
      in_block = 0;
    }
  }
  for (i = 0; i < number_of_blocks; i++) {
    for (snp_counter = 0; snp_counter < number_of_branch_snps; snp_counter++) {
      if (snp_site_coords[snp_counter] >= block_coordinates[0][i]) {
        block_coordinates[0][i] = snp_site_coords[snp_counter];
        break;
      }
    }
    for (snp_counter = number_of_branch_snps - 1; snp_counter >= 0; snp_counter--) {
      if (snp_site_coords[snp_counter] <= block_coordinates[1][i]) {
        block_coordinates[1][i] = snp_site_coords[snp_counter];
        break;
      }
    }
  }
  free(gaps_in_original_genome_space);
  free(window_count);
  return number_of_blocks;
}
```