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

```asm
<problem10>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r12
  mov    %edi,%r12d
  sub    $0x18,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x18(%rbp)
  xor    %eax,%eax
  call   <sqrt@plt>
  mov    %rsp,%rdx
  mov    %rax,%r9
  mov    %r12d,%eax
  lea    0xf(,%rax,4),%rax
  shr    $0x4,%rax
  shl    $0x4,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  sub    %rcx,%rdx
  cmp    %rdx,%rsp
  je     L205
L237:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rdx,%rsp
  jne    L237
L205:
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  jne    L107
L21:
  mov    %rsp,%rcx
  cmp    $0x2,%r12d
  jbe    L35
  lea    -0x3(%r12),%eax
  lea    -0x2(%r12),%esi
  cmp    $0x2,%eax
  jbe    L23
  mov    %esi,%edx
  movdqa D35(%rip),%xmm0
  lea    0x8(%rcx),%rax
  shr    $0x2,%edx
  sub    $0x1,%edx
  shl    $0x4,%rdx
  lea    0x18(%rcx,%rdx,1),%rdx
  nop
L135:
  movups %xmm0,(%rax)
  add    $0x10,%rax
  cmp    %rdx,%rax
  jne    L135
  mov    %esi,%edx
  and    $0xfffffffc,%edx
  lea    0x2(%rdx),%eax
  cmp    %edx,%esi
  je     L35
L259:
  movslq %eax,%rdx
  lea    0x1(%rax),%esi
  lea    (%rcx,%rdx,4),%rdx
  movl   $0x1,(%rdx)
  cmp    %r12d,%esi
  jae    L35
  add    $0x2,%eax
  movl   $0x1,0x4(%rdx)
  cmp    %r12d,%eax
  jae    L35
  movl   $0x1,0x8(%rdx)
L35:
  cmp    $0x1,%r9d
  jbe    L64
  lea    -0x2(%r9),%edi
  mov    $0x4,%esi
  mov    $0x2,%edx
  xor    %r8d,%r8d
  add    $0x3,%rdi
  jmp    L111
  nopl   0x0(%rax)
L51:
  add    $0x1,%rdx
  add    $0x2,%esi
  cmp    %rdi,%rdx
  je     L47
L111:
  mov    (%rcx,%rdx,4),%r10d
  test   %r10d,%r10d
  je     L51
  add    %edx,%r8d
  cmp    %esi,%r12d
  jbe    L51
  movslq %esi,%rax
  nopl   0x0(%rax,%rax,1)
L231:
  movl   $0x0,(%rcx,%rax,4)
  add    %rdx,%rax
  cmp    %eax,%r12d
  ja     L231
  add    $0x1,%rdx
  add    $0x2,%esi
  cmp    %rdi,%rdx
  jne    L111
L47:
  lea    0x1(%r9),%edi
  mov    %edi,%eax
  cmp    %r12d,%edi
  jae    L234
  mov    %r12d,%edx
  sub    %r9d,%edx
  lea    -0x1(%rdx),%r9d
  sub    $0x2,%edx
  cmp    $0x2,%edx
  jbe    L215
  mov    %edi,%eax
  movd   %edi,%xmm6
  pxor   %xmm1,%xmm1
  movdqa D26(%rip),%xmm5
  lea    (%rcx,%rax,4),%rdx
  pshufd $0x0,%xmm6,%xmm2
  movdqa %xmm1,%xmm4
  mov    %r9d,%eax
  shr    $0x2,%eax
  paddd  D27(%rip),%xmm2
  lea    -0x1(%rax),%esi
  lea    0x10(%rdx),%rax
  shl    $0x4,%rsi
  add    %rax,%rsi
  jmp    L37
  nopl   (%rax)
L20:
  add    $0x10,%rax
L37:
  movdqu (%rdx),%xmm0
  movdqa %xmm2,%xmm3
  mov    %rax,%rdx
  paddd  %xmm5,%xmm2
  pcmpeqd %xmm4,%xmm0
  pandn  %xmm3,%xmm0
  paddd  %xmm0,%xmm1
  cmp    %rax,%rsi
  jne    L20
  movdqa %xmm1,%xmm0
  mov    %r9d,%edx
  psrldq $0x8,%xmm0
  and    $0xfffffffc,%edx
  paddd  %xmm0,%xmm1
  movdqa %xmm1,%xmm0
  psrldq $0x4,%xmm0
  paddd  %xmm0,%xmm1
  movd   %xmm1,%eax
  add    %eax,%r8d
  lea    (%rdi,%rdx,1),%eax
  cmp    %edx,%r9d
  je     L234
L215:
  movslq %eax,%rdx
  lea    (%rcx,%rdx,4),%rdx
  lea    (%r8,%rax,1),%ecx
  mov    (%rdx),%edi
  test   %edi,%edi
  cmovne %ecx,%r8d
  lea    0x1(%rax),%ecx
  cmp    %ecx,%r12d
  jbe    L234
  mov    0x4(%rdx),%esi
  test   %esi,%esi
  je     L122
  add    %ecx,%r8d
L122:
  add    $0x2,%eax
  cmp    %eax,%r12d
  jbe    L234
  mov    0x8(%rdx),%edx
  test   %edx,%edx
  je     L234
  add    %eax,%r8d
L234:
  mov    %r8d,%edx
  mov    %r12d,%esi
  lea    D28(%rip),%rdi
  call   <printf@plt>
  mov    -0x18(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L78
  mov    -0x8(%rbp),%r12
  leave
  ret
L107:
  orq    $0x0,-0x8(%rsp,%rax,1)
  jmp    L21
L64:
  xor    %r8d,%r8d
  jmp    L47
L23:
  mov    $0x2,%eax
  jmp    L259
L78:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_tag: D35
type: byte[16]
name: read_data
arguments: data_tag: D26
type: byte[16]
name: read_data
arguments: data_tag: D27
type: byte[16]
name: read_data
arguments: data_tag: D28
type: string

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

tool: {"D26": [0x04,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x04,0x00,0x00,0x00]}

tool: {"D27": [0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x02,0x00,0x00,0x00,0x03,0x00,0x00,0x00]}

tool: D28: Problem 10: The sum of all primes below %u is %llu


assistant: ```c
void problem10(unsigned limit) {
  uint_fast64_t sum = 0;
  unsigned sqrt_limit = (int)sqrt(limit);
  bool sieve[limit];
  for (int i = 2; i < limit; ++i) {
    sieve[i] = true;
  }
  for (int i = 2; i <= sqrt_limit; ++i) {
    if (sieve[i]) {
      sum += i;
      for (int j = i * 2; j < limit; j += i) {
        sieve[j] = false;
      }
    }
  }
  for (int i = sqrt_limit + 1; i < limit; ++i) {
    if (sieve[i]) {
      sum += i;
    }
  }
  printf("Problem 10: The sum of all primes below %u is %llu\n", limit, sum);
}
```