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

```asm
<CledirhGordanQuasispin>:
  endbr64
  lea    (%rsi,%rcx,1),%eax
  cmp    %r9d,%eax
  je     L6
  pxor   %xmm0,%xmm0
  ret
  nopl   0x0(%rax)
L6:
  push   %r15
  mov    %r8d,%r15d
  push   %r14
  mov    %edx,%r14d
  mov    %r8d,%edx
  push   %r13
  mov    %edi,%r13d
  push   %r12
  mov    %ecx,%r12d
  push   %rbp
  mov    %esi,%ebp
  mov    %r14d,%esi
  push   %rbx
  mov    %r9d,%ebx
  sub    $0x8,%rsp
  call   <Triangle@plt>
  test   %eax,%eax
  je     L282
  mov    %ebp,%eax
  neg    %eax
  cmovs  %ebp,%eax
  cmp    %r13d,%eax
  jg     L282
  mov    %r12d,%edx
  neg    %edx
  cmovs  %r12d,%edx
  cmp    %r14d,%edx
  jg     L282
  mov    %ebx,%ecx
  neg    %ecx
  cmovs  %ebx,%ecx
  cmp    %r15d,%ecx
  jg     L282
  add    %r13d,%eax
  test   $0x1,%al
  jne    L282
  add    %r14d,%edx
  and    $0x1,%edx
  jne    L282
  add    %r15d,%ecx
  and    $0x1,%ecx
  jne    L282
  cmp    $0x1,%r14d
  je     L124
  cmp    $0x2,%r14d
  je     L69
  test   %r14d,%r14d
  je     L141
  add    $0x8,%rsp
  mov    %ebx,%r9d
  mov    %r15d,%r8d
  mov    %r12d,%ecx
  pop    %rbx
  mov    %r14d,%edx
  mov    %ebp,%esi
  mov    %r13d,%edi
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1080 <CledirhGordan@plt>
L141:
  cmp    %ebx,%ebp
  jne    L282
  movsd  D211(%rip),%xmm0
  cmp    %r15d,%r13d
  je     L84
  nopl   (%rax)
L282:
  pxor   %xmm0,%xmm0
L84:
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L124:
  lea    0x1(%r13),%eax
  cmp    %r15d,%eax
  je     L142
  sub    $0x1,%r13d
  cmp    %r15d,%r13d
  jne    L282
  imul   %r12d,%ebx
  mov    %r15d,%eax
  pxor   %xmm0,%xmm0
  neg    %r12d
  pxor   %xmm1,%xmm1
  movsd  D44(%rip),%xmm2
  cvtsi2sd %r15d,%xmm1
  sub    %ebx,%eax
  cvtsi2sd %eax,%xmm0
  addsd  %xmm2,%xmm1
  addsd  %xmm2,%xmm0
  mulsd  D134(%rip),%xmm0
  divsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%edi
  call   <sqrt@plt>
  movapd %xmm0,%xmm1
  pxor   %xmm0,%xmm0
  cvtsi2sd %r12d,%xmm0
  mulsd  %xmm1,%xmm0
  jmp    L84
L69:
  test   %r12d,%r12d
  jne    L162
  lea    0x2(%r13),%eax
  cmp    %r15d,%eax
  je     L273
  cmp    %r15d,%r13d
  je     L47
  sub    $0x2,%r13d
  cmp    %r15d,%r13d
  jne    L282
  pxor   %xmm2,%xmm2
  lea    (%rbx,%r15,1),%eax
  pxor   %xmm0,%xmm0
  movsd  D44(%rip),%xmm1
  cvtsi2sd %r15d,%xmm2
  pxor   %xmm3,%xmm3
  sub    %ebx,%r15d
  cvtsi2sd %eax,%xmm0
  cvtsi2sd %r15d,%xmm3
  addsd  %xmm1,%xmm0
  addsd  %xmm1,%xmm3
  addsd  %xmm2,%xmm1
  addsd  D123(%rip),%xmm2
  mulsd  %xmm3,%xmm0
  mulsd  D134(%rip),%xmm0
  mulsd  %xmm2,%xmm1
  divsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%edi
  call   <sqrt@plt>
  xorpd  D197(%rip),%xmm0
  jmp    L84
L162:
  lea    0x2(%r12),%eax
  and    $0xfffffffb,%eax
  jne    L282
  lea    0x2(%r13),%eax
  cmp    %r15d,%eax
  je     L191
  cmp    %r15d,%r13d
  je     L226
  sub    $0x2,%r13d
  cmp    %r15d,%r13d
  jne    L282
  imul   %r12d,%ebx
  pxor   %xmm2,%xmm2
  pxor   %xmm0,%xmm0
  cvtsi2sd %r15d,%xmm2
  cvtsi2sd %ebx,%xmm0
  mulsd  D134(%rip),%xmm0
  movapd %xmm2,%xmm3
  subsd  %xmm0,%xmm3
  movsd  D44(%rip),%xmm0
  movapd %xmm3,%xmm1
  addsd  D34(%rip),%xmm3
  addsd  %xmm0,%xmm1
  addsd  %xmm2,%xmm0
  addsd  D123(%rip),%xmm2
  mulsd  %xmm3,%xmm1
  mulsd  %xmm2,%xmm0
  divsd  %xmm0,%xmm1
  cvttsd2si %xmm1,%edi
  call   <sqrt@plt>
  mulsd  D134(%rip),%xmm0
  jmp    L84
L142:
  mov    %r12d,%eax
  pxor   %xmm0,%xmm0
  pxor   %xmm1,%xmm1
  imul   %ebx,%eax
  cvtsi2sd %r15d,%xmm1
  add    %r15d,%eax
  cvtsi2sd %eax,%xmm0
  mulsd  D134(%rip),%xmm0
L236:
  divsd  %xmm1,%xmm0
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  cvttsd2si %xmm0,%edi
  jmp    1070 <sqrt@plt>
L273:
  lea    (%rbx,%r15,1),%eax
  pxor   %xmm2,%xmm2
  pxor   %xmm0,%xmm0
  cvtsi2sd %r15d,%xmm2
  pxor   %xmm1,%xmm1
  sub    %ebx,%r15d
  cvtsi2sd %eax,%xmm0
  mulsd  D134(%rip),%xmm0
  cvtsi2sd %r15d,%xmm1
  mulsd  %xmm1,%xmm0
  movapd %xmm2,%xmm1
  subsd  D211(%rip),%xmm1
  mulsd  %xmm2,%xmm1
  jmp    L236
L47:
  pxor   %xmm1,%xmm1
  movsd  D44(%rip),%xmm0
  cvtsi2sd %r13d,%xmm1
  addsd  %xmm1,%xmm0
  mulsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%edi
  call   <sqrt@plt>
  movsd  D134(%rip),%xmm2
  movapd %xmm0,%xmm1
  pxor   %xmm0,%xmm0
  cvtsi2sd %ebx,%xmm0
  mulsd  %xmm2,%xmm1
  mulsd  %xmm2,%xmm0
  divsd  %xmm1,%xmm0
  jmp    L84
L226:
  imul   %r12d,%ebx
  pxor   %xmm3,%xmm3
  pxor   %xmm2,%xmm2
  movsd  D44(%rip),%xmm1
  cvtsi2sd %r13d,%xmm3
  neg    %r12d
  cvtsi2sd %ebx,%xmm2
  mulsd  D134(%rip),%xmm2
  movapd %xmm3,%xmm0
  subsd  %xmm2,%xmm0
  addsd  %xmm3,%xmm2
  addsd  %xmm1,%xmm0
  addsd  %xmm3,%xmm1
  mulsd  %xmm2,%xmm0
  mulsd  %xmm3,%xmm1
  mulsd  D134(%rip),%xmm0
  divsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%edi
  call   <sqrt@plt>
  movapd %xmm0,%xmm1
  pxor   %xmm0,%xmm0
  cvtsi2sd %r12d,%xmm0
  mulsd  D134(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  jmp    L84
L191:
  pxor   %xmm1,%xmm1
  pxor   %xmm3,%xmm3
  pxor   %xmm0,%xmm0
  mov    %r12d,%eax
  cvtsi2sd %r12d,%xmm1
  mulsd  D134(%rip),%xmm1
  pxor   %xmm2,%xmm2
  cvtsi2sd %ebx,%xmm3
  imul   %ebx,%eax
  cvtsi2sd %r15d,%xmm2
  mulsd  %xmm3,%xmm1
  cvtsi2sd %eax,%xmm0
  mulsd  D134(%rip),%xmm0
  addsd  %xmm2,%xmm1
  addsd  %xmm2,%xmm0
  subsd  D44(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movapd %xmm2,%xmm1
  subsd  D211(%rip),%xmm1
  mulsd  %xmm2,%xmm1
  divsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%edi
  call   <sqrt@plt>
  mulsd  D134(%rip),%xmm0
  jmp    L84
```

tool_calls: name: read_data
arguments: label: D211
type: f64
name: read_data
arguments: label: D44
type: f64
name: read_data
arguments: label: D134
type: f64
name: read_data
arguments: label: D123
type: f64
name: read_data
arguments: label: D197
type: f32[4]
name: read_data
arguments: label: D34
type: f64

tool: D211: 1

tool: D44: 2

tool: D134: 0.5

tool: D123: 3

tool: {"D197": [0.0,-0.0,0.0,0.0]}

tool: D34: 4

assistant: ```c
double CledirhGordanQuasispin(int ja, int ma, int jb, int mb, int jab, int mab) {
  double CG;
  CG = 0.0;
  if (ma + mb != mab)
    return CG;
  if (!Triangle(ja, jb, jab))
    return CG;
  if (abs(ma) > ja || abs(mb) > jb || abs(mab) > jab)
    return CG;
  if (((abs((abs(ma) + ja)) & 0x01) ? 1 : 0) || ((abs((abs(mb) + jb)) & 0x01) ? 1 : 0) || ((abs((abs(mab) + jab)) & 0x01) ? 1 : 0))
    return CG;
  switch (jb) {
  case 0:
    if (ja != jab)
      return CG;
    if (ma != mab)
      return CG;
    CG = 1.0;
    break;
  case 1:
    if (ja + 1 == jab)
      CG = sqrt(0.5 * (jab + mb * mab) / jab);
    else if (ja - 1 == jab)
      CG = -mb * sqrt(0.5 * (jab - mb * mab + 2.0) / (jab + 2.0));
    break;
  case 2:
    if (mb == 0) {
      if (ja + 2 == jab)
        CG = sqrt((0.5 * (jab + mab) * (jab - mab)) / ((jab - 1.0) * jab));
      else if (ja == jab)
        CG = (0.5 * mab) / (0.5 * sqrt(jab * (jab + 2.0)));
      else if (ja - 2 == jab)
        CG = -sqrt(0.5 * ((jab + mab + 2.0) * (jab - mab + 2.0)) / ((jab + 2.0) * (jab + 3.0)));
    } else if (mb == 2 || mb == -2) {
      if (ja + 2 == jab)
        CG = 0.5 * sqrt(((jab + mb * mab * 0.5 - 2.0) * (jab + mb * 0.5 * mab)) / ((jab - 1.0) * jab));
      else if (ja == jab)
        CG = -mb * 0.5 * sqrt(0.5 * ((jab - mb * mab * 0.5 + 2.0) * (jab + mb * mab * 0.5)) / ((jab + 2.0) * jab));
      else if (ja - 2 == jab)
        CG = 0.5 * sqrt(((jab - mb * mab * 0.5 + 2.0) * (jab - mb * mab * 0.5 + 4.0)) / ((jab + 2.0) * (jab + 3.0)));
    }
    break;
  default:
    CG = CledirhGordan(ja, ma, jb, mb, jab, mab);
  }
  return CG;
}
```