user: 下面的汇编指令对应的C源代码是什么：

```asm
<_renormalize_transition_matrix>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %esi,-0x2c(%rbp)
  mov    %rdx,-0x38(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  movl   $0x0,-0x18(%rbp)
  jmp    L9
L58:
  movl   $0x0,-0x14(%rbp)
  jmp    L103
L95:
  mov    -0x18(%rbp),%eax
  imul   -0x2c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x14(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rax,%rdx
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x38(%rbp),%rax
  add    %rcx,%rax
  movsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x14(%rbp)
L103:
  mov    -0x14(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jl     L95
  mov    -0x2c(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x38(%rbp),%rax
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <_mixed_sort@plt>
  mov    -0x2c(%rbp),%edx
  mov    -0x38(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <_kahan_summation@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x8(%rbp)
  movsd  -0x10(%rbp),%xmm0
  comisd -0x8(%rbp),%xmm0
  jbe    L12
  movsd  -0x10(%rbp),%xmm0
  jmp    L86
L12:
  movsd  -0x8(%rbp),%xmm0
L86:
  movsd  %xmm0,-0x10(%rbp)
  addl   $0x1,-0x18(%rbp)
L9:
  mov    -0x18(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jl     L58
  pxor   %xmm0,%xmm0
  comisd -0x10(%rbp),%xmm0
  jae    L53
  movl   $0x0,-0x18(%rbp)
  jmp    L5
L33:
  movl   $0x0,-0x14(%rbp)
  jmp    L35
L114:
  mov    -0x18(%rbp),%eax
  imul   -0x2c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x14(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0x18(%rbp),%eax
  imul   -0x2c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x14(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  divsd  -0x10(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x18(%rbp),%eax
  cmp    -0x14(%rbp),%eax
  jne    L135
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  pxor   %xmm0,%xmm0
  movsd  %xmm0,(%rax)
  jmp    L66
L135:
  mov    -0x18(%rbp),%eax
  imul   -0x2c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x14(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rax,%rdx
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x38(%rbp),%rax
  add    %rcx,%rax
  movsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
L66:
  addl   $0x1,-0x14(%rbp)
L35:
  mov    -0x14(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jl     L114
  mov    -0x2c(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x38(%rbp),%rax
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <_mixed_sort@plt>
  mov    -0x2c(%rbp),%edx
  mov    -0x38(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <_kahan_summation@plt>
  movapd %xmm0,%xmm1
  mov    -0x18(%rbp),%eax
  imul   -0x2c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x18(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movsd  D6(%rip),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x18(%rbp)
L5:
  mov    -0x18(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jl     L33
  jmp    L51
L53:
  nop
L51:
  leave
  ret
```

tool_calls: name: parse_data
arguments: label: D6
type: f64

tool: D6: 1

assistant: ```c
extern void _renormalize_transition_matrix(double *p, int n_conf_states, double *scratch_M) {
  int i, j;
  double sum, max_sum = 0.0;
  for (i = 0; i < n_conf_states; ++i) {
    for (j = 0; j < n_conf_states; ++j)
      scratch_M[j] = p[i * n_conf_states + j];
    _mixed_sort(scratch_M, 0, n_conf_states - 1);
    sum = _kahan_summation(scratch_M, n_conf_states);
    max_sum = (max_sum > sum) ? max_sum : sum;
  }
  if (0.0 >= max_sum)
    return;
  for (i = 0; i < n_conf_states; ++i) {
    for (j = 0; j < n_conf_states; ++j) {
      p[i * n_conf_states + j] /= max_sum;
      if (i == j)
        scratch_M[i] = 0.0;
      else
        scratch_M[i] = p[i * n_conf_states + j];
    }
    _mixed_sort(scratch_M, 0, n_conf_states - 1);
    p[i * n_conf_states + i] = 1.0 - _kahan_summation(scratch_M, n_conf_states);
  }
}
```