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

```asm
<get_blocks>:
  endbr64
  push   %r15
  push   %r14
  lea    0x1(%rsi),%r14d
  push   %r13
  push   %r12
  mov    %esi,%r12d
  mov    $0x4,%esi
  push   %rbp
  mov    %rdx,%rbp
  push   %rbx
  mov    %r8d,%ebx
  sub    $0x28,%rsp
  mov    %rdi,(%rsp)
  mov    %r14d,%edi
  mov    0x60(%rsp),%r13
  mov    %ecx,0x8(%rsp)
  mov    %r9d,0xc(%rsp)
  call   <calloc@plt>
  mov    $0x4,%esi
  mov    %r14d,%edi
  mov    %rax,%r15
  call   <calloc@plt>
  mov    0x70(%rsp),%edx
  movslq 0x70(%rsp),%rsi
  mov    (%rsp),%r10
  mov    %rax,%r14
  test   %edx,%edx
  mov    0x68(%rsp),%rdx
  jle    L147
  xor    %eax,%eax
  jmp    L274
  nopl   0x0(%rax,%rax,1)
L265:
  cmp    $0x2d,%cl
  je     L178
  add    $0x1,%rax
  cmp    %rsi,%rax
  je     L147
L274:
  movzbl 0x0(%r13,%rax,1),%ecx
  cmp    $0x4e,%cl
  jne    L265
L178:
  movslq (%rdx,%rax,4),%rcx
  add    $0x1,%rax
  movl   $0x1,-0x4(%r14,%rcx,4)
  cmp    %rsi,%rax
  jne    L274
L147:
  mov    0x8(%rsp),%eax
  test   %eax,%eax
  jle    L263
  mov    %ebx,%r13d
  mov    0x8(%rsp),%eax
  mov    %r10,0x10(%rsp)
  shr    $0x1f,%r13d
  mov    %rbp,0x18(%rsp)
  add    %ebx,%r13d
  sub    $0x1,%eax
  lea    0x4(%rbp,%rax,4),%rax
  sar    %r13d
  mov    %r13d,%ebx
  mov    %rax,(%rsp)
  mov    %r12d,%eax
  mov    %rbp,%r12
  neg    %ebx
  mov    %r15,%rbp
  mov    %eax,%r13d
  nopl   0x0(%rax,%rax,1)
L275:
  mov    (%r12),%edi
  mov    %r14,%rcx
  mov    %r13d,%edx
  lea    (%rdi,%rbx,1),%esi
  sub    $0x1,%edi
  call   <extend_lower_part_of_window@plt>
  mov    (%r12),%edi
  xor    %edx,%edx
  mov    %r14,%rcx
  test   %eax,%eax
  cmovns %eax,%edx
  mov    %edi,%esi
  add    $0x1,%edi
  sub    %ebx,%esi
  mov    %edx,%r15d
  mov    %r13d,%edx
  call   <extend_upper_part_of_window@plt>
  movdqa D7(%rip),%xmm1
  cmp    %eax,%r13d
  cmovle %r13d,%eax
  cmp    %r15d,%eax
  mov    %eax,%esi
  jle    L176
  mov    %eax,%edi
  sub    %r15d,%edi
  lea    -0x1(%rdi),%eax
  cmp    $0x2,%eax
  jbe    L295
  movslq %r15d,%rax
  lea    0x0(%rbp,%rax,4),%rdx
  mov    %edi,%eax
  shr    $0x2,%eax
  lea    -0x1(%rax),%ecx
  lea    0x10(%rdx),%rax
  shl    $0x4,%rcx
  add    %rax,%rcx
  jmp    L142
  nopl   (%rax)
L104:
  add    $0x10,%rax
L142:
  movdqu (%rdx),%xmm0
  paddd  %xmm1,%xmm0
  movups %xmm0,(%rdx)
  mov    %rax,%rdx
  cmp    %rcx,%rax
  jne    L104
  mov    %edi,%eax
  and    $0xfffffffc,%eax
  add    %eax,%r15d
  cmp    %eax,%edi
  je     L176
L295:
  movslq %r15d,%rax
  lea    0x1(%r15),%edx
  shl    $0x2,%rax
  addl   $0x1,0x0(%rbp,%rax,1)
  cmp    %edx,%esi
  jle    L176
  add    $0x2,%r15d
  addl   $0x1,0x4(%rbp,%rax,1)
  cmp    %r15d,%esi
  jle    L176
  addl   $0x1,0x8(%rbp,%rax,1)
L176:
  add    $0x4,%r12
  cmp    (%rsp),%r12
  jne    L275
  mov    %rbp,%r15
  mov    0x10(%rsp),%r10
  mov    0x18(%rsp),%rbp
  mov    %r13d,%r12d
L263:
  xor    %r13d,%r13d
  test   %r12d,%r12d
  jle    L23
  xor    %eax,%eax
  mov    %r15,%rcx
  mov    0xc(%rsp),%r8d
  xor    %edi,%edi
  xor    %edx,%edx
  xor    %r13d,%r13d
  lea    0x1(%rax),%esi
  cmp    %r8d,(%rcx)
  jle    L96
  nopl   (%rax)
L172:
  test   %edx,%edx
  cmove  %eax,%edi
  cmp    %esi,%r12d
  je     L257
  add    $0x4,%rcx
  mov    $0x1,%edx
  mov    %esi,%eax
L204:
  lea    0x1(%rax),%esi
  cmp    %r8d,(%rcx)
  jg     L172
L96:
  cmp    $0x1,%edx
  je     L257
  add    $0x4,%rcx
  cmp    %esi,%r12d
  je     L298
L182:
  xor    %edx,%edx
  mov    %esi,%eax
  jmp    L204
  nopl   0x0(%rax)
L257:
  mov    (%r10),%r9
  movslq %r13d,%rdx
  sub    $0x1,%eax
  add    $0x1,%r13d
  add    $0x4,%rcx
  mov    %edi,(%r9,%rdx,4)
  mov    0x8(%r10),%r9
  mov    %eax,(%r9,%rdx,4)
  cmp    %esi,%r12d
  jne    L182
L298:
  test   %r13d,%r13d
  je     L23
  mov    0x8(%rsp),%r9d
  movslq %r13d,%r8
  xor    %edi,%edi
  shl    $0x2,%r8
  lea    -0x1(%r9),%eax
  mov    %rax,%rbx
  lea    0x4(%rbp,%rax,4),%rsi
  nopl   0x0(%rax)
L130:
  test   %r9d,%r9d
  jle    L243
  mov    (%r10),%r11
  mov    %rbp,%rax
  add    %rdi,%r11
  mov    (%r11),%ecx
  jmp    L11
  nopl   0x0(%rax,%rax,1)
L33:
  add    $0x4,%rax
  cmp    %rax,%rsi
  je     L220
L11:
  mov    (%rax),%edx
  cmp    %ecx,%edx
  jl     L33
  mov    %edx,(%r11)
L220:
  mov    0x8(%r10),%r11
  movslq %ebx,%rax
  add    %rdi,%r11
  mov    (%r11),%ecx
  jmp    L61
  nopl   0x0(%rax)
L166:
  sub    $0x1,%rax
  test   %eax,%eax
  js     L208
L61:
  mov    0x0(%rbp,%rax,4),%edx
  cmp    %ecx,%edx
  jg     L166
  mov    %edx,(%r11)
L208:
  add    $0x4,%rdi
  cmp    %rdi,%r8
  jne    L130
L23:
  mov    %r14,%rdi
  call   <free@plt>
  mov    %r15,%rdi
  call   <free@plt>
  add    $0x28,%rsp
  mov    %r13d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L243:
  test   %ebx,%ebx
  js     L208
  jmp    L220
```

tool_calls: name: disassemble_data
arguments: label: D7
type_guessed: byte[16]

tool: {"D7": [0x01,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x01,0x00,0x00,0x00]}

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;
}
```