user: What would the C source look like for the assembly code provided here?

```asm
<occultuniform>:
  endbr64
  movapd %xmm0,%xmm2
  subsd  D69(%rip),%xmm0
  movq   D128(%rip),%xmm6
  movsd  D69(%rip),%xmm7
  andpd  %xmm6,%xmm0
  cmpnltsd D52(%rip),%xmm0
  andpd  %xmm0,%xmm2
  andnpd %xmm7,%xmm0
  orpd   %xmm0,%xmm2
  test   %edx,%edx
  jle    L150
  push   %r12
  movapd %xmm2,%xmm4
  lea    -0x1(%rdx),%eax
  push   %rbp
  lea    0x8(%rdi,%rax,8),%r12
  mov    %rsi,%rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x40,%rsp
  movsd  D31(%rip),%xmm3
  addsd  %xmm3,%xmm4
  jmp    L87
  nopl   0x0(%rax)
L138:
  comisd %xmm3,%xmm2
  jb     L52
  movapd %xmm2,%xmm0
  subsd  %xmm3,%xmm0
  comisd %xmm1,%xmm0
  jae    L7
L52:
  movapd %xmm3,%xmm0
  subsd  %xmm2,%xmm0
  movapd %xmm0,%xmm5
  andpd  %xmm6,%xmm5
  comisd %xmm5,%xmm1
  jb     L95
  comisd %xmm1,%xmm4
  jae    L143
L95:
  comisd %xmm1,%xmm0
  jb     L31
  movapd %xmm2,%xmm1
  movapd %xmm3,%xmm0
  mulsd  %xmm2,%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,0x0(%rbp)
L31:
  add    $0x8,%rbx
  add    $0x8,%rbp
  cmp    %rbx,%r12
  je     L136
L87:
  movsd  (%rbx),%xmm1
  comisd %xmm4,%xmm1
  jb     L138
  add    $0x8,%rbx
  movsd  %xmm3,0x0(%rbp)
  add    $0x8,%rbp
  cmp    %rbx,%r12
  jne    L87
L136:
  add    $0x40,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
  nopl   (%rax)
L7:
  movq   $0x0,0x0(%rbp)
  jmp    L31
  nopw   0x0(%rax,%rax,1)
L143:
  movapd %xmm2,%xmm8
  movapd %xmm1,%xmm7
  movapd %xmm3,%xmm0
  movsd  %xmm4,0x38(%rsp)
  mulsd  %xmm2,%xmm8
  movsd  %xmm2,0x30(%rsp)
  mulsd  %xmm1,%xmm7
  movsd  %xmm1,0x18(%rsp)
  subsd  %xmm8,%xmm0
  movsd  %xmm8,0x20(%rsp)
  movsd  %xmm7,0x8(%rsp)
  addsd  %xmm7,%xmm0
  mulsd  D69(%rip),%xmm0
  divsd  %xmm1,%xmm0
  minsd  %xmm3,%xmm0
  call   <acos@plt>
  movsd  0x20(%rsp),%xmm8
  movsd  0x8(%rsp),%xmm6
  mov    D31(%rip),%rax
  movsd  %xmm0,0x10(%rsp)
  movsd  0x30(%rsp),%xmm2
  addsd  %xmm8,%xmm6
  movsd  0x18(%rsp),%xmm1
  movsd  %xmm8,0x28(%rsp)
  movq   %rax,%xmm3
  movsd  %xmm2,0x20(%rsp)
  movapd %xmm6,%xmm0
  subsd  %xmm3,%xmm0
  mulsd  D69(%rip),%xmm0
  divsd  %xmm2,%xmm0
  divsd  %xmm1,%xmm0
  minsd  %xmm3,%xmm0
  call   <acos@plt>
  movsd  0x28(%rsp),%xmm8
  pxor   %xmm6,%xmm6
  movsd  0x10(%rsp),%xmm7
  mov    D31(%rip),%rax
  movsd  0x8(%rsp),%xmm5
  mulsd  %xmm8,%xmm0
  movsd  0x18(%rsp),%xmm1
  movsd  0x20(%rsp),%xmm2
  movq   %rax,%xmm3
  movsd  0x38(%rsp),%xmm4
  addsd  %xmm3,%xmm5
  addsd  %xmm0,%xmm7
  movsd  D100(%rip),%xmm0
  subsd  %xmm8,%xmm5
  mulsd  %xmm1,%xmm0
  mulsd  %xmm5,%xmm5
  mulsd  %xmm1,%xmm0
  subsd  %xmm5,%xmm0
  comisd %xmm6,%xmm0
  movq   D128(%rip),%xmm6
  jbe    L71
  pxor   %xmm5,%xmm5
  ucomisd %xmm0,%xmm5
  ja     L13
L32:
  sqrtsd %xmm0,%xmm0
L12:
  mulsd  D69(%rip),%xmm0
  movapd %xmm3,%xmm1
  subsd  %xmm0,%xmm7
  divsd  D29(%rip),%xmm7
  subsd  %xmm7,%xmm1
  movsd  %xmm1,0x0(%rbp)
  jmp    L31
  nopw   0x0(%rax,%rax,1)
L71:
  pxor   %xmm0,%xmm0
  jmp    L32
  xchg   %ax,%ax
L150:
  ret
L13:
  movsd  %xmm2,0x18(%rsp)
  movsd  %xmm4,0x10(%rsp)
  movsd  %xmm7,0x8(%rsp)
  call   <sqrt@plt>
  mov    D31(%rip),%rax
  movq   D128(%rip),%xmm6
  movsd  0x18(%rsp),%xmm2
  movsd  0x10(%rsp),%xmm4
  movsd  0x8(%rsp),%xmm7
  movq   %rax,%xmm3
  jmp    L12
```

tool_calls: name: unpack_data
arguments: data_label: D69
type_guessed: f64
name: unpack_data
arguments: data_label: D128
type_guessed: qword
name: unpack_data
arguments: data_label: D52
type_guessed: f64
name: unpack_data
arguments: data_label: D31
type_guessed: f64
name: unpack_data
arguments: data_label: D100
type_guessed: f64
name: unpack_data
arguments: data_label: D29
type_guessed: byte[8]

tool: D69: 0.5

tool: D128: 9223372036854775807

tool: D52: 0.001

tool: D31: 1

tool: D100: 4

tool: {"D29": [0x18,0x2d,0x44,0x54,0xfb,0x21,0x09,0x40]}

assistant: ```c
void occultuniform(double *b0, double w, double *muo1, int nb) {
  int i;
  double z, pi, lambdae, kap0, kap1;
  if (fabs(w - 0.5) < 0.001)
    w = 0.5;
  pi = acos(-1.);
  for (i = 0; i < nb; i++) {
    z = b0[i];
    if (z >= 1.0 + w) {
      muo1[i] = 1.;
      continue;
    }
    if (w >= 1.0 && z <= w - 1.0) {
      muo1[i] = 0.0;
      continue;
    }
    if (z >= fabs(1.0 - w) && z <= 1.0 + w) {
      kap1 = acos((((1.0 - w * w + z * z) / 2.0 / z) < (1.0) ? ((1.0 - w * w + z * z) / 2.0 / z) : (1.0)));
      kap0 = acos((((w * w + z * z - 1.0) / 2.0 / w / z) < (1.0) ? ((w * w + z * z - 1.0) / 2.0 / w / z) : (1.0)));
      lambdae = w * w * kap0 + kap1;
      lambdae = (lambdae - 0.5 * sqrt(((4.0 * z * z - ((1.0 + z * z - w * w) * (1.0 + z * z - w * w))) > (0.0) ? (4.0 * z * z - ((1.0 + z * z - w * w) * (1.0 + z * z - w * w))) : (0.0)))) / pi;
      muo1[i] = 1.0 - lambdae;
      continue;
    }
    if (z <= 1.0 - w)
      muo1[i] = 1.0 - w * w;
  }
  return;
}
```