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

```asm
<categorizeGTRGAMMAMULT>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0xe8,%rsp
  mov    %rdi,-0xa8(%rbp)
  mov    %rsi,-0xb0(%rbp)
  mov    %rdx,-0xb8(%rbp)
  mov    %rcx,-0xc0(%rbp)
  mov    %r8,-0xc8(%rbp)
  mov    %r9,-0xd0(%rbp)
  mov    0x10(%rbp),%rax
  mov    %rax,-0xd8(%rbp)
  mov    0x18(%rbp),%rax
  mov    %rax,-0xe0(%rbp)
  mov    0x30(%rbp),%rax
  mov    %rax,-0xe8(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x18(%rbp)
  xor    %eax,%eax
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x80(%rbp)
  movl   $0x0,-0x90(%rbp)
  cmpl   $0x0,0x40(%rbp)
  jne    L92
  mov    -0xc0(%rbp),%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x88(%rbp)
  movsd  D81(%rip),%xmm0
  comisd -0x88(%rbp),%xmm0
  jbe    L6
  movsd  D81(%rip),%xmm0
  movsd  %xmm0,-0x88(%rbp)
L6:
  mov    -0x88(%rbp),%rax
  movq   %rax,%xmm0
  call   <log@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x80(%rbp)
L92:
  mov    0x38(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  add    %rax,%rax
  add    %rdx,%rax
  shl    $0x5,%rax
  mov    %rax,%rdi
  call   <malloc@plt>
  mov    %rax,-0x68(%rbp)
  mov    -0x68(%rbp),%rax
  mov    %rax,-0x78(%rbp)
  movl   $0x0,-0x8c(%rbp)
  jmp    L22
L56:
  cmpl   $0x0,0x40(%rbp)
  je     L26
  mov    -0x8c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0xc0(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x88(%rbp)
  movsd  D81(%rip),%xmm0
  comisd -0x88(%rbp),%xmm0
  jbe    L47
  movsd  D81(%rip),%xmm0
  movsd  %xmm0,-0x88(%rbp)
L47:
  mov    -0x88(%rbp),%rax
  movq   %rax,%xmm0
  call   <log@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x80(%rbp)
L26:
  mov    -0x8c(%rbp),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  shl    $0x2,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x78(%rbp)
  movl   $0x0,-0x94(%rbp)
  jmp    L102
L103:
  mov    -0x8c(%rbp),%eax
  lea    0x0(,%rax,4),%edx
  mov    -0x94(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0xc8(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x48(%rbp)
  mov    -0x8c(%rbp),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0xd0(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  -0x48(%rbp),%xmm0
  mulsd  -0x80(%rbp),%xmm0
  movq   %xmm0,%rax
  mov    -0x78(%rbp),%rbx
  lea    0x8(%rbx),%rdx
  mov    %rdx,-0x78(%rbp)
  movq   %rax,%xmm0
  call   <exp@plt>
  movq   %xmm0,%rax
  mov    %rax,(%rbx)
  mov    -0x8c(%rbp),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0xd0(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  -0x48(%rbp),%xmm0
  mulsd  -0x80(%rbp),%xmm0
  movq   %xmm0,%rax
  mov    -0x78(%rbp),%rbx
  lea    0x8(%rbx),%rdx
  mov    %rdx,-0x78(%rbp)
  movq   %rax,%xmm0
  call   <exp@plt>
  movq   %xmm0,%rax
  mov    %rax,(%rbx)
  mov    -0x8c(%rbp),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  cltq
  add    $0x2,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0xd0(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  -0x48(%rbp),%xmm0
  mulsd  -0x80(%rbp),%xmm0
  movq   %xmm0,%rax
  mov    -0x78(%rbp),%rbx
  lea    0x8(%rbx),%rdx
  mov    %rdx,-0x78(%rbp)
  movq   %rax,%xmm0
  call   <exp@plt>
  movq   %xmm0,%rax
  mov    %rax,(%rbx)
  addl   $0x1,-0x94(%rbp)
L102:
  cmpl   $0x3,-0x94(%rbp)
  jle    L103
  addl   $0x1,-0x8c(%rbp)
L22:
  mov    -0x8c(%rbp),%eax
  cmp    0x38(%rbp),%eax
  jl     L56
  mov    0x20(%rbp),%eax
  mov    %eax,-0x94(%rbp)
  jmp    L13
L110:
  mov    -0x94(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0xe8(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x8c(%rbp)
  mov    -0x8c(%rbp),%eax
  shl    $0x4,%eax
  mov    %eax,%ecx
  mov    -0x94(%rbp),%eax
  movslq %eax,%rdx
  mov    -0xa8(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  add    %ecx,%eax
  shl    $0x2,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0xd8(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x60(%rbp)
  mov    -0x94(%rbp),%eax
  shl    $0x4,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0xb0(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x58(%rbp)
  mov    -0x8c(%rbp),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  shl    $0x2,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x78(%rbp)
  mov    -0x60(%rbp),%rax
  movsd  (%rax),%xmm1
  mov    -0x58(%rbp),%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x40(%rbp)
  mov    -0x60(%rbp),%rax
  add    $0x8,%rax
  movsd  (%rax),%xmm1
  mov    -0x58(%rbp),%rax
  add    $0x8,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm1
  mov    -0x78(%rbp),%rax
  lea    0x8(%rax),%rdx
  mov    %rdx,-0x78(%rbp)
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  -0x40(%rbp),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x40(%rbp)
  mov    -0x60(%rbp),%rax
  add    $0x10,%rax
  movsd  (%rax),%xmm1
  mov    -0x58(%rbp),%rax
  add    $0x10,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm1
  mov    -0x78(%rbp),%rax
  lea    0x8(%rax),%rdx
  mov    %rdx,-0x78(%rbp)
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  -0x40(%rbp),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x40(%rbp)
  mov    -0x60(%rbp),%rax
  add    $0x18,%rax
  movsd  (%rax),%xmm1
  mov    -0x58(%rbp),%rax
  add    $0x18,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm1
  mov    -0x78(%rbp),%rax
  lea    0x8(%rax),%rdx
  mov    %rdx,-0x78(%rbp)
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  -0x40(%rbp),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x40(%rbp)
  mov    -0x40(%rbp),%rax
  movq   %rax,%xmm0
  call   <log@plt>
  mov    -0x94(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0xb8(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  pxor   %xmm2,%xmm2
  cvtsi2sd %eax,%xmm2
  movsd  D129(%rip),%xmm1
  mulsd  %xmm2,%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x40(%rbp)
  mov    -0x60(%rbp),%rax
  movsd  (%rax),%xmm1
  mov    -0x58(%rbp),%rax
  add    $0x20,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x38(%rbp)
  mov    -0x60(%rbp),%rax
  add    $0x8,%rax
  movsd  (%rax),%xmm1
  mov    -0x58(%rbp),%rax
  add    $0x28,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm1
  mov    -0x78(%rbp),%rax
  lea    0x8(%rax),%rdx
  mov    %rdx,-0x78(%rbp)
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  -0x38(%rbp),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x38(%rbp)
  mov    -0x60(%rbp),%rax
  add    $0x10,%rax
  movsd  (%rax),%xmm1
  mov    -0x58(%rbp),%rax
  add    $0x30,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm1
  mov    -0x78(%rbp),%rax
  lea    0x8(%rax),%rdx
  mov    %rdx,-0x78(%rbp)
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  -0x38(%rbp),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x38(%rbp)
  mov    -0x60(%rbp),%rax
  add    $0x18,%rax
  movsd  (%rax),%xmm1
  mov    -0x58(%rbp),%rax
  add    $0x38,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm1
  mov    -0x78(%rbp),%rax
  lea    0x8(%rax),%rdx
  mov    %rdx,-0x78(%rbp)
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  -0x38(%rbp),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x38(%rbp)
  mov    -0x38(%rbp),%rax
  movq   %rax,%xmm0
  call   <log@plt>
  mov    -0x94(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0xb8(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  pxor   %xmm2,%xmm2
  cvtsi2sd %eax,%xmm2
  movsd  D129(%rip),%xmm1
  mulsd  %xmm2,%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x38(%rbp)
  mov    -0x60(%rbp),%rax
  movsd  (%rax),%xmm1
  mov    -0x58(%rbp),%rax
  add    $0x40,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x30(%rbp)
  mov    -0x60(%rbp),%rax
  add    $0x8,%rax
  movsd  (%rax),%xmm1
  mov    -0x58(%rbp),%rax
  add    $0x48,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm1
  mov    -0x78(%rbp),%rax
  lea    0x8(%rax),%rdx
  mov    %rdx,-0x78(%rbp)
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  -0x30(%rbp),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x30(%rbp)
  mov    -0x60(%rbp),%rax
  add    $0x10,%rax
  movsd  (%rax),%xmm1
  mov    -0x58(%rbp),%rax
  add    $0x50,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm1
  mov    -0x78(%rbp),%rax
  lea    0x8(%rax),%rdx
  mov    %rdx,-0x78(%rbp)
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  -0x30(%rbp),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x30(%rbp)
  mov    -0x60(%rbp),%rax
  add    $0x18,%rax
  movsd  (%rax),%xmm1
  mov    -0x58(%rbp),%rax
  add    $0x58,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm1
  mov    -0x78(%rbp),%rax
  lea    0x8(%rax),%rdx
  mov    %rdx,-0x78(%rbp)
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  -0x30(%rbp),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x30(%rbp)
  mov    -0x30(%rbp),%rax
  movq   %rax,%xmm0
  call   <log@plt>
  mov    -0x94(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0xb8(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  pxor   %xmm2,%xmm2
  cvtsi2sd %eax,%xmm2
  movsd  D129(%rip),%xmm1
  mulsd  %xmm2,%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x30(%rbp)
  mov    -0x60(%rbp),%rax
  movsd  (%rax),%xmm1
  mov    -0x58(%rbp),%rax
  add    $0x60,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x28(%rbp)
  mov    -0x60(%rbp),%rax
  add    $0x8,%rax
  movsd  (%rax),%xmm1
  mov    -0x58(%rbp),%rax
  add    $0x68,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm1
  mov    -0x78(%rbp),%rax
  lea    0x8(%rax),%rdx
  mov    %rdx,-0x78(%rbp)
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  -0x28(%rbp),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x28(%rbp)
  mov    -0x60(%rbp),%rax
  add    $0x10,%rax
  movsd  (%rax),%xmm1
  mov    -0x58(%rbp),%rax
  add    $0x70,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm1
  mov    -0x78(%rbp),%rax
  lea    0x8(%rax),%rdx
  mov    %rdx,-0x78(%rbp)
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  -0x28(%rbp),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x28(%rbp)
  mov    -0x60(%rbp),%rax
  add    $0x18,%rax
  movsd  (%rax),%xmm1
  mov    -0x58(%rbp),%rax
  add    $0x78,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm1
  mov    -0x78(%rbp),%rax
  lea    0x8(%rax),%rdx
  mov    %rdx,-0x78(%rbp)
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  -0x28(%rbp),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x28(%rbp)
  mov    -0x28(%rbp),%rax
  movq   %rax,%xmm0
  call   <log@plt>
  mov    -0x94(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0xb8(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  pxor   %xmm2,%xmm2
  cvtsi2sd %eax,%xmm2
  movsd  D129(%rip),%xmm1
  mulsd  %xmm2,%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x28(%rbp)
  movsd  -0x40(%rbp),%xmm1
  movsd  -0x38(%rbp),%xmm0
  addsd  %xmm0,%xmm1
  movsd  -0x30(%rbp),%xmm0
  addsd  %xmm0,%xmm1
  movsd  -0x28(%rbp),%xmm0
  addsd  %xmm0,%xmm1
  movsd  D132(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x50(%rbp)
  movsd  D114(%rip),%xmm0
  divsd  -0x50(%rbp),%xmm0
  movsd  %xmm0,-0x50(%rbp)
  movsd  -0x40(%rbp),%xmm1
  movsd  D132(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  mulsd  -0x50(%rbp),%xmm0
  movsd  %xmm0,-0x40(%rbp)
  movsd  -0x38(%rbp),%xmm1
  movsd  D132(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  mulsd  -0x50(%rbp),%xmm0
  movsd  %xmm0,-0x38(%rbp)
  movsd  -0x30(%rbp),%xmm1
  movsd  D132(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  mulsd  -0x50(%rbp),%xmm0
  movsd  %xmm0,-0x30(%rbp)
  movsd  -0x28(%rbp),%xmm1
  movsd  D132(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  mulsd  -0x50(%rbp),%xmm0
  movsd  %xmm0,-0x28(%rbp)
  movsd  D64(%rip),%xmm0
  movsd  %xmm0,-0x70(%rbp)
  movsd  -0x40(%rbp),%xmm1
  movsd  -0x70(%rbp),%xmm0
  comisd %xmm1,%xmm0
  jbe    L123
  movsd  -0x40(%rbp),%xmm0
  movsd  %xmm0,-0x70(%rbp)
  movl   $0x0,-0x90(%rbp)
L123:
  movsd  -0x38(%rbp),%xmm1
  movsd  -0x70(%rbp),%xmm0
  comisd %xmm1,%xmm0
  jbe    L76
  movsd  -0x38(%rbp),%xmm0
  movsd  %xmm0,-0x70(%rbp)
  movl   $0x1,-0x90(%rbp)
L76:
  movsd  -0x30(%rbp),%xmm1
  movsd  -0x70(%rbp),%xmm0
  comisd %xmm1,%xmm0
  jbe    L142
  movsd  -0x30(%rbp),%xmm0
  movsd  %xmm0,-0x70(%rbp)
  movl   $0x2,-0x90(%rbp)
L142:
  movsd  -0x28(%rbp),%xmm1
  movsd  -0x70(%rbp),%xmm0
  comisd %xmm1,%xmm0
  jbe    L80
  movsd  -0x28(%rbp),%xmm0
  movsd  %xmm0,-0x70(%rbp)
  movl   $0x3,-0x90(%rbp)
L80:
  mov    -0x8c(%rbp),%eax
  lea    0x0(,%rax,4),%ecx
  mov    -0x94(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0xe0(%rbp),%rax
  add    %rdx,%rax
  mov    -0x90(%rbp),%edx
  add    %ecx,%edx
  mov    %edx,(%rax)
  addl   $0x1,-0x94(%rbp)
L13:
  mov    -0x94(%rbp),%eax
  cmp    0x28(%rbp),%eax
  jl     L110
  mov    -0x68(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  nop
  mov    -0x18(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L31
  call   <__stack_chk_fail@plt>
L31:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

tool_calls: name: read_data
arguments: data_label: D81
data_type: byte[8]
name: read_data
arguments: data_label: D129
data_type: byte[8]
name: read_data
arguments: data_label: D132
data_type: f64
name: read_data
arguments: data_label: D114
data_type: f64
name: read_data
arguments: data_label: D64
data_type: f64

tool: {"D81": [0x16,0x56,0xe7,0x9e,0xaf,0x03,0xd2,0x3c]}

tool: {"D129": [0xef,0x39,0xfa,0xfe,0x42,0x2e,0x66,0xc0]}

tool: D132: 0.25

tool: D114: 1

tool: D64: 1e+300

assistant: ```c
void categorizeGTRGAMMAMULT(char *tipX1, double *x2_start, int *ex2, double *pz, double *gammaRates, double *EIGN, double *tipVector, int *rateCategory, int lower, int upper, int *modelptr, int NumberOfModels, int multiBranch) {
  double z, lz = 0.0, term[4], ki;
  int i, index = 0;
  double *diagptable, *diagptable_start, allSum, min;
  double *x1, *x2;
  int model;
  if (!multiBranch) {
    z = pz[0];
    if (z < 1.0E-15)
      z = 1.0E-15;
    lz = log(z);
  }
  diagptable = diagptable_start = (double *)malloc(sizeof(double) * 12 * NumberOfModels);
  for (model = 0; model < NumberOfModels; model++) {
    if (multiBranch) {
      z = pz[model];
      if (z < 1.0E-15)
        z = 1.0E-15;
      lz = log(z);
    }
    diagptable = &diagptable_start[12 * model];
    for (i = 0; i < 4; i++) {
      ki = gammaRates[model * 4 + i];
      *diagptable++ = exp(EIGN[model * 3] * ki * lz);
      *diagptable++ = exp(EIGN[model * 3 + 1] * ki * lz);
      *diagptable++ = exp(EIGN[model * 3 + 2] * ki * lz);
    }
  }
  for (i = lower; i < upper; i++) {
    model = modelptr[i];
    x1 = &(tipVector[64 * model + 4 * tipX1[i]]);
    x2 = &x2_start[16 * i];
    diagptable = &diagptable_start[12 * model];
    term[0] = x1[0] * x2[0];
    term[0] += x1[1] * x2[1] * *diagptable++;
    term[0] += x1[2] * x2[2] * *diagptable++;
    term[0] += x1[3] * x2[3] * *diagptable++;
    term[0] = log(term[0]) + ex2[i] * log((1.0 / 115792089237316195423570985008687907853269984665640564039457584007913129639936.0));
    term[1] = x1[0] * x2[4];
    term[1] += x1[1] * x2[5] * *diagptable++;
    term[1] += x1[2] * x2[6] * *diagptable++;
    term[1] += x1[3] * x2[7] * *diagptable++;
    term[1] = log(term[1]) + ex2[i] * log((1.0 / 115792089237316195423570985008687907853269984665640564039457584007913129639936.0));
    term[2] = x1[0] * x2[8];
    term[2] += x1[1] * x2[9] * *diagptable++;
    term[2] += x1[2] * x2[10] * *diagptable++;
    term[2] += x1[3] * x2[11] * *diagptable++;
    term[2] = log(term[2]) + ex2[i] * log((1.0 / 115792089237316195423570985008687907853269984665640564039457584007913129639936.0));
    term[3] = x1[0] * x2[12];
    term[3] += x1[1] * x2[13] * *diagptable++;
    term[3] += x1[2] * x2[14] * *diagptable++;
    term[3] += x1[3] * x2[15] * *diagptable++;
    term[3] = log(term[3]) + (ex2[i]) * log((1.0 / 115792089237316195423570985008687907853269984665640564039457584007913129639936.0));
    allSum = 0.25 * (term[0] + term[1] + term[2] + term[3]);
    allSum = 1.0 / allSum;
    term[0] = 0.25 * term[0] * allSum;
    term[1] = 0.25 * term[1] * allSum;
    term[2] = 0.25 * term[2] * allSum;
    term[3] = 0.25 * term[3] * allSum;
    min = 1.0E300;
    if (term[0] < min) {
      min = term[0];
      index = 0;
    }
    if (term[1] < min) {
      min = term[1];
      index = 1;
    }
    if (term[2] < min) {
      min = term[2];
      index = 2;
    }
    if (term[3] < min) {
      min = term[3];
      index = 3;
    }
    rateCategory[i] = model * 4 + index;
  }
  free(diagptable_start);
  return;
}
```