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

```asm
<pll_core_create_lookup>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  mov    %rdx,%r12
  push   %rbp
  push   %rbx
  sub    $0x68,%rsp
  mov    %edi,0x28(%rsp)
  mov    0xa0(%rsp),%ebx
  mov    %esi,0xc(%rsp)
  mov    %rcx,0x30(%rsp)
  mov    %r8,0x38(%rsp)
  mov    %r9,0x40(%rsp)
  cmp    $0x4,%edi
  je     L39
  mov    %ebx,%edi
  call   <log2@plt>
  mov    %eax,%edi
  call   <ceil@plt>
  mov    0xc(%rsp),%edx
  mov    %eax,0x54(%rsp)
  mov    0x28(%rsp),%eax
  mov    %eax,%edi
  imul   %edx,%edi
  mov    %edi,0x50(%rsp)
  test   %ebx,%ebx
  je     L46
  mov    %eax,%esi
  lea    0x0(,%rsi,8),%r15
  test   %edx,%edx
  je     L46
  test   %eax,%eax
  je     L46
  movq   $0x0,0x18(%rsp)
  mov    %ebx,%eax
  pxor   %xmm2,%xmm2
  mov    %rax,0x58(%rsp)
  lea    -0x1(%rbx),%eax
  mov    0x40(%rsp),%rbx
  lea    0x4(%rbx,%rax,4),%rax
  mov    %rax,0x48(%rsp)
  mov    %r15,%rax
  imul   %rsi,%rax
  mov    %rax,0x10(%rsp)
L31:
  mov    0x18(%rsp),%rbx
  movzbl 0x54(%rsp),%ecx
  mov    %ebx,%eax
  shl    %cl,%eax
  imul   0x50(%rsp),%eax
  mov    %eax,0x2c(%rsp)
  mov    0x40(%rsp),%rax
  mov    %rax,0x20(%rsp)
  mov    (%rax,%rbx,4),%ebp
L73:
  mov    0x20(%rsp),%rax
  movl   $0x0,0x8(%rsp)
  xor    %edi,%edi
  mov    0x2c(%rsp),%ebx
  mov    0x38(%rsp),%r14
  mov    (%rax),%r11d
  mov    0x30(%rsp),%r13
  nopw   0x0(%rax,%rax,1)
L95:
  mov    0x28(%rsp),%eax
  mov    %r14,%r9
  mov    %r13,%r8
  lea    (%rax,%rdi,1),%r10d
  xchg   %ax,%ax
L80:
  mov    %r11d,%ecx
  mov    %ebp,%edx
  movapd %xmm2,%xmm1
  xor    %eax,%eax
  movapd %xmm2,%xmm0
  nop
L70:
  test   $0x1,%dl
  je     L121
  addsd  (%r8,%rax,8),%xmm0
L121:
  test   $0x1,%cl
  je     L33
  addsd  (%r9,%rax,8),%xmm1
L33:
  shr    %edx
  add    $0x1,%rax
  shr    %ecx
  cmp    %rsi,%rax
  jne    L70
  mulsd  %xmm1,%xmm0
  lea    0x1(%rdi),%eax
  add    %rbx,%rdi
  add    %r15,%r8
  add    %r15,%r9
  movsd  %xmm0,(%r12,%rdi,8)
  cmp    %eax,%r10d
  je     L100
  mov    %eax,%edi
  jmp    L80
  nopw   0x0(%rax,%rax,1)
L100:
  mov    0x10(%rsp),%rax
  addl   $0x1,0x8(%rsp)
  add    %rax,%r13
  add    %rax,%r14
  mov    0x8(%rsp),%eax
  cmp    %eax,0xc(%rsp)
  je     L67
  mov    %r10d,%edi
  jmp    L95
L67:
  addq   $0x4,0x20(%rsp)
  mov    0x50(%rsp),%ebx
  mov    0x20(%rsp),%rax
  add    %ebx,0x2c(%rsp)
  cmp    %rax,0x48(%rsp)
  jne    L73
  addq   $0x1,0x18(%rsp)
  mov    0x18(%rsp),%rax
  cmp    0x58(%rsp),%rax
  jne    L31
L46:
  add    $0x68,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L39:
  add    $0x68,%rsp
  mov    %rcx,%rdx
  mov    %esi,%edi
  mov    %r8,%rcx
  pop    %rbx
  mov    %r12,%rsi
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1080 <pll_core_create_lookup_4x4@plt>
```

assistant: ```c
void pll_core_create_lookup(unsigned int states, unsigned int rate_cats, double *lookup, const double *left_matrix, const double *right_matrix, const unsigned int *tipmap, unsigned int tipmap_size, unsigned int attrib) {
  if (states == 4) {
    pll_core_create_lookup_4x4(rate_cats, lookup, left_matrix, right_matrix);
    return;
  }
  unsigned int i, j, k, n, m;
  unsigned int index = 0;
  unsigned int maxstates = tipmap_size;
  unsigned int log2_maxstates = (unsigned int)ceil(log2(maxstates));
  unsigned int span = states * rate_cats;
  double termj = 0;
  double termk = 0;
  const double *jmat;
  const double *kmat;
  double *lh_statepair;
  for (j = 0; j < maxstates; ++j) {
    for (k = 0; k < maxstates; ++k) {
      jmat = left_matrix;
      kmat = right_matrix;
      index = 0;
      lh_statepair = lookup;
      lh_statepair += ((j << log2_maxstates) + k) * span;
      for (n = 0; n < rate_cats; ++n) {
        for (i = 0; i < states; ++i) {
          termj = 0;
          termk = 0;
          unsigned int jstate = tipmap[j];
          unsigned int kstate = tipmap[k];
          for (m = 0; m < states; ++m) {
            if (jstate & 1)
              termj += jmat[m];
            if (kstate & 1)
              termk += kmat[m];
            jstate >>= 1;
            kstate >>= 1;
          }
          jmat += states;
          kmat += states;
          lh_statepair[index++] = termj * termk;
        }
      }
    }
  }
}
```