user: Translate the below assembly code into C programming language:

```asm
<occultuniform>:
  endbr64
  movapd %xmm0,%xmm2
  subsd  D71(%rip),%xmm0
  movq   D88(%rip),%xmm6
  movsd  D71(%rip),%xmm7
  andpd  %xmm6,%xmm0
  cmpnltsd D59(%rip),%xmm0
  andpd  %xmm0,%xmm2
  andnpd %xmm7,%xmm0
  orpd   %xmm0,%xmm2
  test   %edx,%edx
  jle    L127
  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  D79(%rip),%xmm3
  addsd  %xmm3,%xmm4
  jmp    L115
  nopl   0x0(%rax)
L86:
  comisd %xmm3,%xmm2
  jb     L36
  movapd %xmm2,%xmm0
  subsd  %xmm3,%xmm0
  comisd %xmm1,%xmm0
  jae    L62
L36:
  movapd %xmm3,%xmm0
  subsd  %xmm2,%xmm0
  movapd %xmm0,%xmm5
  andpd  %xmm6,%xmm5
  comisd %xmm5,%xmm1
  jb     L93
  comisd %xmm1,%xmm4
  jae    L9
L93:
  comisd %xmm1,%xmm0
  jb     L65
  movapd %xmm2,%xmm1
  movapd %xmm3,%xmm0
  mulsd  %xmm2,%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,0x0(%rbp)
L65:
  add    $0x8,%rbx
  add    $0x8,%rbp
  cmp    %r12,%rbx
  je     L118
L115:
  movsd  (%rbx),%xmm1
  comisd %xmm4,%xmm1
  jb     L86
  add    $0x8,%rbx
  movsd  %xmm3,0x0(%rbp)
  add    $0x8,%rbp
  cmp    %r12,%rbx
  jne    L115
L118:
  add    $0x40,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
  nopl   (%rax)
L62:
  movq   $0x0,0x0(%rbp)
  jmp    L65
  nopw   0x0(%rax,%rax,1)
L9:
  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  D71(%rip),%xmm0
  divsd  %xmm1,%xmm0
  minsd  %xmm3,%xmm0
  call   <acos@plt>
  movsd  0x20(%rsp),%xmm8
  movsd  0x8(%rsp),%xmm6
  mov    D79(%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  D71(%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    D79(%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  D36(%rip),%xmm0
  subsd  %xmm8,%xmm5
  mulsd  %xmm1,%xmm0
  mulsd  %xmm5,%xmm5
  mulsd  %xmm1,%xmm0
  subsd  %xmm5,%xmm0
  comisd %xmm6,%xmm0
  movq   D88(%rip),%xmm6
  jbe    L154
  pxor   %xmm5,%xmm5
  ucomisd %xmm0,%xmm5
  ja     L54
L122:
  sqrtsd %xmm0,%xmm0
L147:
  mulsd  D71(%rip),%xmm0
  movapd %xmm3,%xmm1
  subsd  %xmm0,%xmm7
  divsd  D45(%rip),%xmm7
  subsd  %xmm7,%xmm1
  movsd  %xmm1,0x0(%rbp)
  jmp    L65
  nopw   0x0(%rax,%rax,1)
L154:
  pxor   %xmm0,%xmm0
  jmp    L122
  xchg   %ax,%ax
L127:
  ret
L54:
  movsd  %xmm2,0x18(%rsp)
  movsd  %xmm4,0x10(%rsp)
  movsd  %xmm7,0x8(%rsp)
  call   <sqrt@plt>
  mov    D79(%rip),%rax
  movq   D88(%rip),%xmm6
  movsd  0x18(%rsp),%xmm2
  movsd  0x10(%rsp),%xmm4
  movsd  0x8(%rsp),%xmm7
  movq   %rax,%xmm3
  jmp    L147
```

tool_calls: name: parse_data
arguments: tag: D71
type_guessed: f64
name: parse_data
arguments: tag: D88
type_guessed: qword
name: parse_data
arguments: tag: D59
type_guessed: f64
name: parse_data
arguments: tag: D79
type_guessed: f64
name: parse_data
arguments: tag: D36
type_guessed: f64
name: parse_data
arguments: tag: D45
type_guessed: byte[8]

tool: D71: 0.5

tool: D88: 9223372036854775807

tool: D59: 0.001

tool: D79: 1

tool: D36: 4

tool: {"D45": [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;
}
```