user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<bn_mul_high>:
  endbr64
  push   %r15
  mov    %rsi,%r10
  push   %r14
  push   %r13
  mov    %r9,%r13
  push   %r12
  push   %rbp
  mov    %rdx,%rbp
  push   %rbx
  mov    %rdi,%rbx
  mov    %r10,%rdi
  sub    $0x48,%rsp
  mov    %rcx,0x28(%rsp)
  mov    %r8d,%ecx
  shr    $0x1f,%ecx
  mov    %r8d,0x18(%rsp)
  add    %r8d,%ecx
  mov    %r10,0x10(%rsp)
  sar    %ecx
  movslq %ecx,%rax
  lea    0x0(,%rax,8),%r15
  mov    %eax,%edx
  mov    %rax,%r14
  mov    %rax,0x30(%rsp)
  lea    (%rsi,%r15,1),%r12
  mov    %r12,%rsi
  call   <bn_cmp_words@plt>
  mov    %r15,0x8(%rsp)
  add    %rbp,%r15
  mov    %r14d,%edx
  mov    %r15,%rdi
  mov    %rbp,%rsi
  mov    %eax,(%rsp)
  call   <bn_cmp_words@plt>
  mov    (%rsp),%ecx
  mov    0x8(%rsp),%rdi
  mov    %eax,%r8d
  mov    0x10(%rsp),%r10
  lea    (%rcx,%rcx,2),%eax
  add    %rbx,%rdi
  add    %r8d,%eax
  mov    %rdi,(%rsp)
  cmp    $0x2,%eax
  je     L145
  jg     L215
  cmp    $0xfffffffc,%eax
  je     L310
  cmp    $0xfffffffe,%eax
  jne    L1
  mov    %r10,%rdx
  mov    %r14d,%ecx
  mov    %r12,%rsi
  mov    %rbx,%rdi
  call   <bn_sub_words@plt>
  mov    (%rsp),%rdi
  mov    %r14d,%ecx
  mov    %rbp,%rdx
  mov    %r15,%rsi
  call   <bn_sub_words@plt>
  movl   $0x1,0x1c(%rsp)
  xchg   %ax,%ax
L54:
  movslq 0x18(%rsp),%rax
  mov    %rax,0x10(%rsp)
  shl    $0x3,%rax
  mov    %rax,0x38(%rsp)
  lea    0x0(%r13,%rax,1),%rbp
  cmp    $0x8,%r14d
  je     L273
  mov    (%rsp),%rdx
  mov    %rbp,%r8
  mov    %r14d,%ecx
  mov    %rbx,%rsi
  mov    %r13,%rdi
  call   <bn_mul_recursive@plt>
  mov    %rbp,%r8
  mov    %r14d,%ecx
  mov    %r15,%rdx
  mov    %r12,%rsi
  mov    %rbx,%rdi
  call   <bn_mul_recursive@plt>
L43:
  mov    0x18(%rsp),%eax
  mov    0x28(%rsp),%rdi
  mov    %rbx,%rsi
  lea    (%rax,%r14,1),%r15d
  movslq %r15d,%r15
  lea    0x0(%r13,%r15,8),%rax
  mov    %rax,0x20(%rsp)
  mov    %rax,%r12
  test   %rdi,%rdi
  je     L78
  mov    %rdi,%rdx
  mov    %r14d,%ecx
  mov    %rax,%rdi
  call   <bn_add_words@plt>
  mov    %r12,%rsi
L78:
  mov    0x1c(%rsp),%r8d
  mov    %r14d,%ecx
  mov    %r13,%rdx
  mov    %rbp,%rdi
  test   %r8d,%r8d
  je     L298
  call   <bn_sub_words@plt>
  mov    0x28(%rsp),%rax
  test   %rax,%rax
  je     L271
L290:
  mov    0x20(%rsp),%r12
  mov    0x8(%rsp),%rsi
  mov    %rax,%r15
  mov    %r14d,%ecx
  mov    %rbp,%rdx
  mov    %r12,%rdi
  add    %rax,%rsi
  call   <bn_sub_words@plt>
  mov    %r12,%rsi
  mov    %r14d,%ecx
  mov    %r15,%rdx
  mov    %rbp,%rdi
  call   <bn_add_words@plt>
  mov    %rbp,%rsi
  mov    %eax,%r12d
L348:
  mov    %r14d,%ecx
  mov    %rbx,%rdx
  mov    %rbp,%rdi
  call   <bn_add_words@plt>
  mov    0x8(%rsp),%r8
  mov    %r14d,%ecx
  mov    %r13,%rdx
  lea    (%r12,%rax,1),%r15d
  mov    0x1c(%rsp),%eax
  mov    %rbp,%rsi
  mov    %rbp,%rdi
  add    %r13,%r8
  test   %eax,%eax
  mov    %r8,0x8(%rsp)
  je     L164
  call   <bn_sub_words@plt>
  mov    0x20(%rsp),%rdx
  mov    %r14d,%ecx
  mov    %rbx,%rsi
  mov    %rbx,%rdi
  sub    %eax,%r15d
  call   <bn_add_words@plt>
  mov    (%rsp),%rdx
  mov    %r14d,%ecx
  mov    %rbx,%rsi
  mov    %rbx,%rdi
  mov    %rax,%r12
  call   <bn_add_words@plt>
  mov    0x8(%rsp),%rdx
  mov    %r14d,%ecx
  mov    %rbx,%rsi
  mov    %rbx,%rdi
  add    %eax,%r12d
  call   <bn_sub_words@plt>
  mov    %rax,%r8
  mov    %r12d,%eax
  sub    %r8d,%eax
L319:
  test   %r15d,%r15d
  je     L240
  jle    L317
  movslq %r15d,%rdx
  nopl   0x0(%rax)
L46:
  xor    %ecx,%ecx
  add    (%rbx),%rdx
  setb   %cl
  mov    %rdx,(%rbx)
  add    $0x8,%rbx
  mov    $0x1,%edx
  test   %rcx,%rcx
  jne    L46
L240:
  test   %eax,%eax
  je     L60
  jle    L68
  mov    (%rsp),%rbp
  cltq
  nopl   0x0(%rax)
L327:
  xor    %edx,%edx
  add    0x0(%rbp),%rax
  setb   %dl
  mov    %rax,0x0(%rbp)
  add    $0x8,%rbp
  mov    $0x1,%eax
  test   %rdx,%rdx
  jne    L327
L60:
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L215:
  cmp    $0x4,%eax
  jne    L1
  mov    %r14d,%ecx
  mov    %r12,%rdx
  mov    %r10,%rsi
  mov    %rbx,%rdi
  call   <bn_sub_words@plt>
  mov    (%rsp),%rdi
  mov    %r14d,%ecx
  mov    %rbp,%rdx
  mov    %r15,%rsi
  call   <bn_sub_words@plt>
L1:
  movl   $0x0,0x1c(%rsp)
  jmp    L54
  nopl   (%rax)
L164:
  call   <bn_add_words@plt>
  mov    0x20(%rsp),%rdx
  mov    %r14d,%ecx
  mov    %rbx,%rsi
  mov    %rbx,%rdi
  add    %eax,%r15d
  call   <bn_add_words@plt>
  mov    (%rsp),%rdx
  mov    %r14d,%ecx
  mov    %rbx,%rsi
  mov    %rbx,%rdi
  mov    %rax,%r12
  call   <bn_add_words@plt>
  mov    0x8(%rsp),%rdx
  mov    %r14d,%ecx
  mov    %rbx,%rsi
  mov    %rbx,%rdi
  add    %eax,%r12d
  call   <bn_add_words@plt>
  add    %r12d,%eax
  jmp    L319
  xchg   %ax,%ax
L298:
  call   <bn_add_words@plt>
  mov    0x28(%rsp),%rax
  test   %rax,%rax
  jne    L290
L271:
  mov    0x18(%rsp),%edi
  cmp    $0x1,%edi
  jle    L306
  mov    0x38(%rsp),%rax
  mov    0x30(%rsp),%rdx
  add    0x10(%rsp),%rdx
  shl    $0x3,%rdx
  add    $0x8,%rax
  cmp    %rdx,%rax
  je     L64
  cmp    $0x7,%edi
  jle    L64
  mov    %r14d,%esi
  add    %r13,%rdx
  pxor   %xmm1,%xmm1
  xor    %eax,%eax
  shr    %esi
  shl    $0x4,%rsi
  nopl   0x0(%rax,%rax,1)
L175:
  movdqu 0x0(%rbp,%rax,1),%xmm2
  movdqa %xmm1,%xmm0
  psubq  %xmm2,%xmm0
  movups %xmm0,(%rdx,%rax,1)
  add    $0x10,%rax
  cmp    %rax,%rsi
  jne    L175
  mov    %r14d,%eax
  and    $0xfffffffe,%eax
  test   $0x1,%r14b
  je     L306
  add    %rax,%r15
  add    0x10(%rsp),%rax
  mov    0x0(%r13,%rax,8),%rax
  neg    %rax
  mov    %rax,0x0(%r13,%r15,8)
L306:
  mov    0x20(%rsp),%rsi
  xor    %r12d,%r12d
  jmp    L348
  nopl   0x0(%rax)
L317:
  mov    %r15d,%edx
  neg    %edx
  movslq %edx,%rdx
  jmp    L260
  nopw   0x0(%rax,%rax,1)
L333:
  mov    $0x1,%edx
L260:
  mov    (%rbx),%rcx
  add    $0x8,%rbx
  mov    %rcx,%rsi
  sub    %rdx,%rsi
  mov    %rsi,-0x8(%rbx)
  cmp    %rcx,%rdx
  ja     L333
  jmp    L240
L68:
  neg    %eax
  mov    (%rsp),%rbp
  cltq
  jmp    L220
  nopw   0x0(%rax,%rax,1)
L284:
  mov    $0x1,%eax
L220:
  mov    0x0(%rbp),%rdx
  add    $0x8,%rbp
  mov    %rdx,%rcx
  sub    %rax,%rcx
  mov    %rcx,-0x8(%rbp)
  cmp    %rdx,%rax
  ja     L284
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L273:
  mov    (%rsp),%rdx
  mov    %rbx,%rsi
  mov    %r13,%rdi
  call   <bn_mul_comba8@plt>
  mov    %r15,%rdx
  mov    %r12,%rsi
  mov    %rbx,%rdi
  call   <bn_mul_comba8@plt>
  jmp    L43
  nopw   0x0(%rax,%rax,1)
L145:
  mov    %r10,%rsi
  mov    %r14d,%ecx
  mov    %r12,%rdx
  mov    %rbx,%rdi
  call   <bn_sub_words@plt>
  mov    (%rsp),%rdi
  mov    %r14d,%ecx
  mov    %r15,%rdx
  mov    %rbp,%rsi
  call   <bn_sub_words@plt>
  movl   $0x1,0x1c(%rsp)
  jmp    L54
  nopl   0x0(%rax,%rax,1)
L310:
  mov    %r10,%rdx
  mov    %r14d,%ecx
  mov    %r12,%rsi
  mov    %rbx,%rdi
  call   <bn_sub_words@plt>
  mov    (%rsp),%rdi
  mov    %r14d,%ecx
  mov    %r15,%rdx
  mov    %rbp,%rsi
  call   <bn_sub_words@plt>
  movl   $0x0,0x1c(%rsp)
  jmp    L54
L64:
  mov    0x20(%rsp),%rcx
  xor    %eax,%eax
  nopw   0x0(%rax,%rax,1)
L115:
  mov    0x0(%rbp,%rax,8),%rdx
  neg    %rdx
  mov    %rdx,(%rcx,%rax,8)
  add    $0x1,%rax
  cmp    %eax,%r14d
  jg     L115
  jmp    L306
```

assistant: ```c
void bn_mul_high(unsigned long long *r, unsigned long long *a, unsigned long long *b, unsigned long long *l, int n2, unsigned long long *t) {
  int i, n;
  int c1, c2;
  int neg, oneg, zero;
  unsigned long long ll, lc, *lp, *mp;
  n = n2 / 2;
  neg = zero = 0;
  c1 = bn_cmp_words(&(a[0]), &(a[n]), n);
  c2 = bn_cmp_words(&(b[n]), &(b[0]), n);
  switch (c1 * 3 + c2) {
  case -4:
    bn_sub_words(&(r[0]), &(a[n]), &(a[0]), n);
    bn_sub_words(&(r[n]), &(b[0]), &(b[n]), n);
    break;
  case -3:
    zero = 1;
    break;
  case -2:
    bn_sub_words(&(r[0]), &(a[n]), &(a[0]), n);
    bn_sub_words(&(r[n]), &(b[n]), &(b[0]), n);
    neg = 1;
    break;
  case -1:
  case 0:
  case 1:
    zero = 1;
    break;
  case 2:
    bn_sub_words(&(r[0]), &(a[0]), &(a[n]), n);
    bn_sub_words(&(r[n]), &(b[0]), &(b[n]), n);
    neg = 1;
    break;
  case 3:
    zero = 1;
    break;
  case 4:
    bn_sub_words(&(r[0]), &(a[0]), &(a[n]), n);
    bn_sub_words(&(r[n]), &(b[n]), &(b[0]), n);
    break;
  }
  oneg = neg;
  if (n == 8) {
    bn_mul_comba8(&(t[0]), &(r[0]), &(r[n]));
    bn_mul_comba8(r, &(a[n]), &(b[n]));
  } else {
    bn_mul_recursive(&(t[0]), &(r[0]), &(r[n]), n, &(t[n2]));
    bn_mul_recursive(r, &(a[n]), &(b[n]), n, &(t[n2]));
  }
  if (l != NULL) {
    lp = &(t[n2 + n]);
    c1 = (int)(bn_add_words(lp, &(r[0]), &(l[0]), n));
  } else {
    c1 = 0;
    lp = &(r[0]);
  }
  if (neg)
    neg = (int)(bn_sub_words(&(t[n2]), lp, &(t[0]), n));
  else {
    bn_add_words(&(t[n2]), lp, &(t[0]), n);
    neg = 0;
  }
  if (l != NULL) {
    bn_sub_words(&(t[n2 + n]), &(l[n]), &(t[n2]), n);
  } else {
    lp = &(t[n2 + n]);
    mp = &(t[n2]);
    for (i = 0; i < n; i++)
      lp[i] = ((~mp[i]) + 1) & (0xffffffffffffffffLL);
  }
  if (l != NULL) {
    lp = &(t[n2]);
    c1 = (int)(bn_add_words(lp, &(t[n2 + n]), &(l[0]), n));
  } else {
    lp = &(t[n2 + n]);
    c1 = 0;
  }
  c1 += (int)(bn_add_words(&(t[n2]), lp, &(r[0]), n));
  if (oneg)
    c1 -= (int)(bn_sub_words(&(t[n2]), &(t[n2]), &(t[0]), n));
  else
    c1 += (int)(bn_add_words(&(t[n2]), &(t[n2]), &(t[0]), n));
  c2 = (int)(bn_add_words(&(r[0]), &(r[0]), &(t[n2 + n]), n));
  c2 += (int)(bn_add_words(&(r[0]), &(r[0]), &(r[n]), n));
  if (oneg)
    c2 -= (int)(bn_sub_words(&(r[0]), &(r[0]), &(t[n]), n));
  else
    c2 += (int)(bn_add_words(&(r[0]), &(r[0]), &(t[n]), n));
  if (c1 != 0) {
    i = 0;
    if (c1 > 0) {
      lc = c1;
      do {
        ll = (r[i] + lc) & (0xffffffffffffffffLL);
        r[i++] = ll;
        lc = (lc > ll);
      } while (lc);
    } else {
      lc = -c1;
      do {
        ll = r[i];
        r[i++] = (ll - lc) & (0xffffffffffffffffLL);
        lc = (lc > ll);
      } while (lc);
    }
  }
  if (c2 != 0) {
    i = n;
    if (c2 > 0) {
      lc = c2;
      do {
        ll = (r[i] + lc) & (0xffffffffffffffffLL);
        r[i++] = ll;
        lc = (lc > ll);
      } while (lc);
    } else {
      lc = -c2;
      do {
        ll = r[i];
        r[i++] = (ll - lc) & (0xffffffffffffffffLL);
        lc = (lc > ll);
      } while (lc);
    }
  }
}
```