user: 提供的汇编代码用C语言表示会是什么样子:

```asm
<DiscreteGamma>:
  endbr64
  movapd %xmm0,%xmm2
  pxor   %xmm7,%xmm7
  push   %r15
  divsd  %xmm1,%xmm0
  cvtsi2sd %edx,%xmm7
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rsi,%rbx
  sub    $0x58,%rsp
  movsd  %xmm1,0x28(%rsp)
  movsd  %xmm7,0x20(%rsp)
  mulsd  %xmm7,%xmm0
  movsd  %xmm0,0x30(%rsp)
  cmp    $0x1,%edx
  je     L31
  mov    %rdi,%r15
  mov    %edx,%ebp
  test   %ecx,%ecx
  je     L105
  test   %edx,%edx
  jle    L152
  movapd %xmm7,%xmm0
  movapd %xmm1,%xmm6
  addsd  %xmm2,%xmm2
  movslq %edx,%r13
  addsd  %xmm7,%xmm0
  movsd  D23(%rip),%xmm4
  addsd  %xmm1,%xmm6
  xor    %r14d,%r14d
  movsd  %xmm4,0x8(%rsp)
  movq   %xmm2,%r12
  divsd  %xmm0,%xmm4
  movsd  %xmm6,0x10(%rsp)
  movsd  %xmm4,0x18(%rsp)
  cs nopw 0x0(%rax,%rax,1)
L185:
  pxor   %xmm0,%xmm0
  cvtsi2sd %r14d,%xmm0
  addsd  %xmm0,%xmm0
  addsd  0x8(%rsp),%xmm0
  mulsd  0x18(%rsp),%xmm0
  cvttsd2si %xmm0,%edi
  movq   %r12,%xmm0
  call   <PointChi2@plt>
  divsd  0x10(%rsp),%xmm0
  movsd  %xmm0,(%rbx,%r14,8)
  add    $0x1,%r14
  cmp    %r13,%r14
  jne    L185
  mov    %ebp,%edx
  mov    %rbx,%rax
  pxor   %xmm0,%xmm0
  shr    %edx
  sub    $0x1,%edx
  shl    $0x4,%rdx
  lea    0x10(%rbx,%rdx,1),%rsi
  mov    %rbx,%rdx
  cs nopw 0x0(%rax,%rax,1)
L88:
  movsd  (%rdx),%xmm1
  add    $0x10,%rdx
  addsd  %xmm1,%xmm0
  movsd  -0x8(%rdx),%xmm1
  addsd  %xmm1,%xmm0
  cmp    %rsi,%rdx
  jne    L88
  mov    %ebp,%edx
  and    $0xfffffffe,%edx
  test   $0x1,%bpl
  je     L76
  mov    %edx,%ecx
  addsd  (%rbx,%rcx,8),%xmm0
L76:
  movsd  0x30(%rsp),%xmm1
  divsd  %xmm0,%xmm1
  movapd %xmm1,%xmm2
  unpcklpd %xmm2,%xmm2
  xchg   %ax,%ax
L160:
  movupd (%rax),%xmm0
  add    $0x10,%rax
  mulpd  %xmm2,%xmm0
  movups %xmm0,-0x10(%rax)
  cmp    %rax,%rsi
  jne    L160
  cmp    %edx,%ebp
  je     L196
  mov    %edx,%edx
  lea    (%rbx,%rdx,8),%rax
  mulsd  (%rax),%xmm1
  movsd  %xmm1,(%rax)
L196:
  test   %ebp,%ebp
  mov    $0x1,%ecx
  movsd  0x8(%rsp),%xmm0
  divsd  0x20(%rsp),%xmm0
  cmovg  %ebp,%ecx
L149:
  mov    %ecx,%edx
  movapd %xmm0,%xmm1
  mov    %r15,%rax
  shr    %edx
  unpcklpd %xmm1,%xmm1
  sub    $0x1,%edx
  shl    $0x4,%rdx
  lea    0x10(%r15,%rdx,1),%rdx
  nopl   0x0(%rax,%rax,1)
L59:
  movups %xmm1,(%rax)
  add    $0x10,%rax
  cmp    %rdx,%rax
  jne    L59
  mov    %ecx,%eax
  and    $0xfffffffe,%eax
  and    $0x1,%ecx
  je     L152
  cltq
  movsd  %xmm0,(%r15,%rax,8)
L152:
  add    $0x58,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nop
L105:
  movsd  D23(%rip),%xmm3
  movsd  %xmm2,0x10(%rsp)
  movsd  %xmm3,0x8(%rsp)
  addsd  %xmm2,%xmm3
  movapd %xmm3,%xmm0
  movsd  %xmm3,0x18(%rsp)
  call   <LnGamma@plt>
  lea    -0x1(%rbp),%eax
  mov    %eax,0x4c(%rsp)
  movsd  %xmm0,0x38(%rsp)
  test   %eax,%eax
  jle    L114
  movsd  0x28(%rsp),%xmm4
  movsd  0x10(%rsp),%xmm2
  lea    -0x2(%rbp),%r12d
  xor    %r14d,%r14d
  mov    %r12,%r13
  movapd %xmm4,%xmm7
  addsd  %xmm2,%xmm2
  addsd  %xmm4,%xmm7
  movsd  %xmm2,0x40(%rsp)
  movsd  %xmm7,0x10(%rsp)
  nopw   0x0(%rax,%rax,1)
L198:
  pxor   %xmm0,%xmm0
  cvtsi2sd %r14d,%xmm0
  addsd  0x8(%rsp),%xmm0
  divsd  0x20(%rsp),%xmm0
  cvttsd2si %xmm0,%edi
  movsd  0x40(%rsp),%xmm0
  call   <PointChi2@plt>
  mov    %r14,%rdx
  divsd  0x10(%rsp),%xmm0
  movsd  %xmm0,(%r15,%r14,8)
  add    $0x1,%r14
  cmp    %r12,%rdx
  jne    L198
  mov    %r15,%r14
  lea    0x8(%r15,%r12,8),%r12
  nopl   0x0(%rax)
L15:
  movsd  0x28(%rsp),%xmm0
  mulsd  (%r14),%xmm0
  add    $0x8,%r14
  movsd  0x38(%rsp),%xmm2
  movsd  0x18(%rsp),%xmm1
  call   <IncompleteGamma@plt>
  movsd  %xmm0,-0x8(%r14)
  cmp    %r12,%r14
  jne    L15
  movsd  (%r15),%xmm0
  movsd  0x30(%rsp),%xmm5
  movslq %ebp,%rax
  cmpl   $0x1,0x4c(%rsp)
  mulsd  %xmm5,%xmm0
  movsd  %xmm0,(%rbx)
  movsd  0x8(%rsp),%xmm0
  subsd  -0x10(%r15,%rax,8),%xmm0
  mulsd  %xmm5,%xmm0
  movsd  %xmm0,-0x8(%rbx,%rax,8)
  jle    L179
  mov    %rbx,%rax
  sub    %r15,%rax
  cmp    $0x8,%rax
  jbe    L21
  cmp    $0x3,%ebp
  je     L21
  mov    %r13d,%eax
  movapd %xmm5,%xmm1
  shr    %eax
  unpcklpd %xmm1,%xmm1
  lea    -0x1(%rax),%edx
  mov    $0x8,%eax
  shl    $0x4,%rdx
  add    $0x18,%rdx
  nopl   0x0(%rax)
L35:
  movupd (%r15,%rax,1),%xmm0
  movupd -0x8(%r15,%rax,1),%xmm3
  subpd  %xmm3,%xmm0
  mulpd  %xmm1,%xmm0
  movups %xmm0,(%rbx,%rax,1)
  add    $0x10,%rax
  cmp    %rdx,%rax
  jne    L35
  mov    %r13d,%eax
  or     $0x1,%eax
  and    $0x1,%r13d
  je     L179
  cltq
  movsd  (%r15,%rax,8),%xmm0
  subsd  -0x8(%r15,%rax,8),%xmm0
  mulsd  0x30(%rsp),%xmm0
  movsd  %xmm0,(%rbx,%rax,8)
L179:
  test   %ebp,%ebp
  jle    L152
  movsd  0x8(%rsp),%xmm0
  mov    %ebp,%ecx
  divsd  0x20(%rsp),%xmm0
  jmp    L149
  nopl   0x0(%rax,%rax,1)
L31:
  mov    D23(%rip),%rax
  mov    %rax,(%rsi)
  jmp    L152
L21:
  lea    -0x3(%rbp),%edx
  mov    $0x1,%eax
  add    $0x2,%rdx
  nopl   0x0(%rax,%rax,1)
L48:
  movsd  (%r15,%rax,8),%xmm0
  subsd  -0x8(%r15,%rax,8),%xmm0
  mulsd  0x30(%rsp),%xmm0
  movsd  %xmm0,(%rbx,%rax,8)
  add    $0x1,%rax
  cmp    %rdx,%rax
  jne    L48
  jmp    L179
L114:
  movsd  (%r15),%xmm0
  movsd  0x30(%rsp),%xmm7
  movslq %ebp,%rax
  mulsd  %xmm7,%xmm0
  movsd  %xmm0,(%rbx)
  movsd  0x8(%rsp),%xmm0
  subsd  -0x10(%r15,%rax,8),%xmm0
  mulsd  %xmm7,%xmm0
  movsd  %xmm0,-0x8(%rbx,%rax,8)
  jmp    L179
```

tool_calls: name: disassemble_data
arguments: tag: D23
type: f64

tool: D23: 1

assistant: ```c
int DiscreteGamma(double freqK[], double rK[], double alfa, double beta, int K, int median) {
  int i;
  double gap05 = 1.0 / (2.0 * K), t, factor = alfa / beta * K, lnga1;
  if (K == 1) {
    rK[0] = 1.0;
    return 0;
  }
  if (median) {
    for (i = 0; i < K; i++)
      rK[i] = PointChi2((i * 2.0 + 1) * gap05, 2.0 * (alfa)) / (2.0 * (beta));
    for (i = 0, t = 0; i < K; i++)
      t += rK[i];
    for (i = 0; i < K; i++)
      rK[i] *= factor / t;
  } else {
    lnga1 = LnGamma(alfa + 1);
    for (i = 0; i < K - 1; i++)
      freqK[i] = PointChi2((i + 1.0) / K, 2.0 * (alfa)) / (2.0 * (beta));
    for (i = 0; i < K - 1; i++)
      freqK[i] = IncompleteGamma(freqK[i] * beta, alfa + 1, lnga1);
    rK[0] = freqK[0] * factor;
    rK[K - 1] = (1 - freqK[K - 2]) * factor;
    for (i = 1; i < K - 1; i++)
      rK[i] = (freqK[i] - freqK[i - 1]) * factor;
  }
  for (i = 0; i < K; i++)
    freqK[i] = 1.0 / K;
  return (0);
}
```