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

```asm
<cast_light>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x68,%rsp
  comiss %xmm0,%xmm1
  mov    %edi,0x1c(%rsp)
  mov    0xa8(%rsp),%r14d
  mov    %esi,0x20(%rsp)
  mov    0xb8(%rsp),%r15d
  mov    %r9d,0x30(%rsp)
  mov    0xc8(%rsp),%eax
  ja     L115
  cmp    0xb0(%rsp),%r14d
  jg     L115
  mov    %edi,%ebx
  mov    0xb0(%rsp),%edi
  mov    %rdx,%r11
  mov    %r14d,%edx
  mov    0xc0(%rsp),%esi
  neg    %edx
  mov    %r11,(%rsp)
  movaps %xmm1,%xmm6
  imul   %edi,%edi
  movsd  D19(%rip),%xmm4
  add    %r15d,%esi
  mov    %esi,0x24(%rsp)
  mov    0xc0(%rsp),%esi
  mov    %edi,0xc(%rsp)
  mov    %r15d,%edi
  imul   %edx,%esi
  imul   %r14d,%edi
  imul   0xd0(%rsp),%edx
  sub    %edi,%esi
  mov    0xd0(%rsp),%edi
  add    %r9d,%esi
  mov    %esi,%r10d
  mov    %esi,0x10(%rsp)
  mov    %eax,%esi
  add    %eax,%edi
  imul   %r14d,%esi
  mov    %edi,0x28(%rsp)
  neg    %edi
  sub    %esi,%edx
  mov    0xa0(%rsp),%esi
  add    %edx,%esi
  mov    %edi,%edx
  mov    %esi,0x14(%rsp)
  imul   %ebx,%esi
  imul   %ebx,%edx
  sub    0xc0(%rsp),%edx
  sub    %r15d,%edx
  imul   %eax,%ebx
  mov    %edx,0x2c(%rsp)
  mov    %esi,%edx
  add    %r10d,%edx
  mov    %edx,0x18(%rsp)
  mov    %ebx,%r10d
  add    %r15d,%r10d
L21:
  mov    %r14d,%ebx
  mov    %r14d,%edx
  not    %ebx
  neg    %edx
  cmp    $0xffffffff,%r14d
  jl     L169
  pxor   %xmm5,%xmm5
  mov    %r14d,%r11d
  mov    0x18(%rsp),%ebp
  mov    0x14(%rsp),%r13d
  cvtsi2sd %edx,%xmm5
  mov    0x10(%rsp),%r12d
  xor    %edi,%edi
  imul   %r14d,%r11d
  movapd %xmm5,%xmm8
  subsd  %xmm4,%xmm5
  addsd  %xmm4,%xmm8
  jmp    L103
  cs nopw 0x0(%rax,%rax,1)
L20:
  test   %edx,%edx
  jne    L74
  movaps %xmm7,%xmm0
  xor    %edi,%edi
L56:
  cmp    $0x1,%ebx
  je     L144
L60:
  add    %r15d,%r12d
  add    %eax,%r13d
  add    %r10d,%ebp
L103:
  add    $0x1,%ebx
  pxor   %xmm2,%xmm2
  cvtsi2sd %ebx,%xmm2
  movapd %xmm2,%xmm3
  addsd  %xmm4,%xmm3
  divsd  %xmm5,%xmm3
  cvtsd2ss %xmm3,%xmm3
  comiss %xmm0,%xmm3
  ja     L56
  subsd  %xmm4,%xmm2
  pxor   %xmm1,%xmm1
  divsd  %xmm8,%xmm2
  cvtsd2ss %xmm2,%xmm1
  comiss %xmm1,%xmm6
  ja     L144
  mov    %ebx,%edx
  movslq %ebp,%rsi
  imul   %ebx,%edx
  lea    0x0(,%rsi,4),%r9
  add    %r11d,%edx
  cmp    0xc(%rsp),%edx
  jge    L36
  mov    %r13d,%edx
  or     %r12d,%edx
  js     L36
  cmp    0x1c(%rsp),%r12d
  jge    L36
  cmp    0x20(%rsp),%r13d
  jge    L36
  add    0xf0(%rsp),%r9
  mov    (%r9),%edx
  test   %edx,%edx
  jne    L36
  mov    0xe8(%rsp),%rdx
  movl   $0x1,(%r9)
  mov    0xd8(%rsp),%r9
  movslq (%rdx),%rdx
  mov    %r12d,(%r9,%rdx,4)
  mov    0xe8(%rsp),%rdx
  mov    0xe0(%rsp),%r9
  movslq (%rdx),%rdx
  mov    %r13d,(%r9,%rdx,4)
  mov    0xe8(%rsp),%rdx
  addl   $0x1,(%rdx)
  nopw   0x0(%rax,%rax,1)
L36:
  mov    (%rsp),%r9
  mov    (%r9,%rsi,4),%edx
  xor    %ecx,%edx
  and    %r8d,%edx
  test   %edi,%edi
  jne    L20
  cmp    %r14d,0xb0(%rsp)
  jle    L56
  test   %edx,%edx
  je     L56
  mov    %r10d,0x58(%rsp)
  sub    $0x8,%rsp
  lea    0x1(%r14),%edx
  movss  %xmm6,0x64(%rsp)
  mov    %r11d,0x5c(%rsp)
  movsd  %xmm5,0x50(%rsp)
  movsd  %xmm8,0x48(%rsp)
  movss  %xmm3,0x58(%rsp)
  push   0xf8(%rsp)
  push   0xf8(%rsp)
  push   0xf8(%rsp)
  push   0xf8(%rsp)
  mov    0xf8(%rsp),%esi
  push   %rsi
  push   %rax
  mov    %eax,0x100(%rsp)
  mov    0xf8(%rsp),%eax
  push   %rax
  push   %r15
  mov    0xf8(%rsp),%eax
  push   %rax
  push   %rdx
  mov    0xf8(%rsp),%eax
  push   %rax
  mov    0x90(%rsp),%r9d
  mov    0x60(%rsp),%rdx
  mov    0x80(%rsp),%esi
  mov    %r8d,0x98(%rsp)
  mov    %ecx,0x94(%rsp)
  movss  %xmm0,0x9c(%rsp)
  mov    0x7c(%rsp),%edi
  call   <cast_light>
  mov    D19(%rip),%rdi
  add    $0x60,%rsp
  mov    0x34(%rsp),%ecx
  mov    0x38(%rsp),%r8d
  movss  0x3c(%rsp),%xmm0
  movss  0x50(%rsp),%xmm3
  mov    0x54(%rsp),%r11d
  movq   %rdi,%xmm4
  mov    0xc8(%rsp),%eax
  movsd  0x40(%rsp),%xmm8
  movsd  0x48(%rsp),%xmm5
  mov    0x58(%rsp),%r10d
  movss  0x5c(%rsp),%xmm6
L74:
  cmp    $0x1,%ebx
  je     L115
  movaps %xmm3,%xmm7
  mov    $0x1,%edi
  jmp    L60
  nopl   (%rax)
L144:
  test   %edi,%edi
  jne    L115
L169:
  mov    0x24(%rsp),%esi
  mov    0x28(%rsp),%edi
  add    $0x1,%r14d
  sub    %esi,0x10(%rsp)
  mov    0x2c(%rsp),%esi
  sub    %edi,0x14(%rsp)
  add    %esi,0x18(%rsp)
  cmp    %r14d,0xb0(%rsp)
  jge    L21
L115:
  add    $0x68,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: retrieve_data
arguments: label: D19
type_infered: f64

tool: D19: 0.5

assistant: ```c
void cast_light(int width, int height, unsigned int *flags, unsigned int flag, unsigned int mask, int cx, int cy, int row, float start, float end, int radius, int xx, int xy, int yx, int yy, int *xs, int *ys, int *n, int *tmp) {
  if (start < end)
    return;
  for (int j = row; j <= radius; ++j) {
    int dx = -j - 1, dy = -j;
    int blocked = 0;
    while (dx <= 0) {
      dx += 1;
      int X = cx + dx * xx + dy * xy;
      int Y = cy + dx * yx + dy * yy;
      float l_slope = (dx - 0.5) / (dy + 0.5);
      float r_slope = (dx + 0.5) / (dy - 0.5);
      float new_start;
      if (start < r_slope) {
        continue;
      } else if (end > l_slope) {
        break;
      } else {
        int IDX = X + Y * width;
        if (dx * dx + dy * dy < radius * radius && X >= 0 && Y >= 0 && X < width && Y < height) {
          if (tmp[IDX] == 0) {
            tmp[IDX] = 1;
            xs[*n] = X;
            ys[*n] = Y;
            (*n) += 1;
          }
        }
        if (blocked) {
          if ((flags[IDX] & mask) != (flag & mask)) {
            new_start = r_slope;
            continue;
          } else {
            blocked = 0;
            start = new_start;
          }
        } else {
          if (((flags[IDX] & mask) != (flag & mask)) && j < radius) {
            blocked = 1;
            cast_light(width, height, flags, flag, mask, cx, cy, j + 1, start, l_slope, radius, xx, xy, yx, yy, xs, ys, n, tmp);
            new_start = r_slope;
          }
        }
      }
    }
    if (blocked) {
      break;
    }
  }
}
```