user: 请从给定的汇编指令推导出C源代码:

```asm
<bn_mul_high>:
  endbr64
  push   %r15
  mov    %rsi,%r10
  push   %r14
  mov    %rdx,%r14
  push   %r13
  push   %r12
  mov    %r9,%r12
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
  mov    %r10,%rdi
  sub    $0x38,%rsp
  mov    %rcx,0x8(%rsp)
  mov    %r8d,%ecx
  shr    $0x1f,%ecx
  mov    %r8d,0x1c(%rsp)
  add    %r8d,%ecx
  mov    %r10,0x20(%rsp)
  sar    %ecx
  movslq %ecx,%rax
  lea    0x0(,%rax,4),%r15
  mov    %eax,%edx
  mov    %rax,%r13
  lea    (%rsi,%r15,1),%r11
  mov    %r11,%rsi
  mov    %r11,0x28(%rsp)
  call   <bn_cmp_words@plt>
  mov    %r15,0x10(%rsp)
  add    %r14,%r15
  mov    %r13d,%edx
  mov    %r15,%rdi
  mov    %r14,%rsi
  mov    %eax,%ebp
  call   <bn_cmp_words@plt>
  mov    0x10(%rsp),%rdi
  mov    0x20(%rsp),%r10
  mov    %eax,%r8d
  lea    0x0(%rbp,%rbp,2),%eax
  mov    0x28(%rsp),%r11
  add    %r8d,%eax
  lea    (%rbx,%rdi,1),%rbp
  cmp    $0x2,%eax
  je     L224
  jg     L0
  cmp    $0xfffffffc,%eax
  je     L22
  cmp    $0xfffffffe,%eax
  jne    L255
  mov    %r11,%rsi
  mov    %r10,%rdx
  mov    %r13d,%ecx
  mov    %rbx,%rdi
  mov    %r11,0x28(%rsp)
  call   <bn_sub_words@plt>
  mov    %r13d,%ecx
  mov    %r14,%rdx
  mov    %r15,%rsi
  mov    %rbp,%rdi
  call   <bn_sub_words@plt>
  movl   $0x1,0x20(%rsp)
  mov    0x28(%rsp),%r11
  cs nopw 0x0(%rax,%rax,1)
L223:
  movslq 0x1c(%rsp),%rax
  mov    %r11,0x28(%rsp)
  lea    (%r12,%rax,4),%r14
  cmp    $0x8,%r13d
  je     L288
  sub    $0x8,%rsp
  xor    %r9d,%r9d
  xor    %r8d,%r8d
  mov    %r13d,%ecx
  push   %r14
  mov    %rbp,%rdx
  mov    %rbx,%rsi
  mov    %r12,%rdi
  call   <bn_mul_recursive@plt>
  mov    0x38(%rsp),%rsi
  xor    %r9d,%r9d
  xor    %r8d,%r8d
  mov    %r13d,%ecx
  mov    %r15,%rdx
  mov    %rbx,%rdi
  mov    %r14,(%rsp)
  call   <bn_mul_recursive@plt>
  pop    %r9
  pop    %r10
L211:
  mov    0x1c(%rsp),%eax
  mov    %rbx,%rsi
  add    %r13d,%eax
  cltq
  lea    (%r12,%rax,4),%r15
  mov    0x8(%rsp),%rax
  test   %rax,%rax
  je     L209
  mov    %r13d,%ecx
  mov    %rax,%rdx
  mov    %r15,%rdi
  call   <bn_add_words@plt>
  mov    %r15,%rsi
L209:
  mov    0x20(%rsp),%r8d
  mov    %r13d,%ecx
  mov    %r12,%rdx
  mov    %r14,%rdi
  test   %r8d,%r8d
  je     L8
  call   <bn_sub_words@plt>
  mov    0x8(%rsp),%rax
  test   %rax,%rax
  je     L168
L147:
  mov    0x10(%rsp),%rsi
  mov    %r13d,%ecx
  mov    %r14,%rdx
  mov    %r15,%rdi
  add    %rax,%rsi
  call   <bn_sub_words@plt>
  mov    0x8(%rsp),%rdx
  mov    %r15,%rsi
  mov    %r13d,%ecx
  mov    %r14,%rdi
  call   <bn_add_words@plt>
  mov    %r14,%rsi
  mov    %eax,0x8(%rsp)
L119:
  mov    %r13d,%ecx
  mov    %rbx,%rdx
  mov    %r14,%rdi
  call   <bn_add_words@plt>
  add    0x8(%rsp),%eax
  mov    %r13d,%ecx
  mov    %r12,%rdx
  mov    0x10(%rsp),%r8
  mov    %eax,0x8(%rsp)
  mov    %r14,%rsi
  mov    %r14,%rdi
  mov    0x20(%rsp),%eax
  add    %r12,%r8
  test   %eax,%eax
  mov    %r8,0x10(%rsp)
  je     L136
  call   <bn_sub_words@plt>
  mov    0x8(%rsp),%r14d
  mov    %r13d,%ecx
  mov    %r15,%rdx
  mov    %rbx,%rsi
  mov    %rbx,%rdi
  sub    %eax,%r14d
  call   <bn_add_words@plt>
  mov    %r13d,%ecx
  mov    %rbp,%rdx
  mov    %rbx,%rsi
  mov    %rbx,%rdi
  mov    %rax,%r12
  call   <bn_add_words@plt>
  mov    0x10(%rsp),%rdx
  mov    %r13d,%ecx
  mov    %rbx,%rsi
  mov    %rbx,%rdi
  add    %eax,%r12d
  call   <bn_sub_words@plt>
  mov    %rax,%r8
  mov    %r12d,%eax
  sub    %r8d,%eax
L68:
  test   %r14d,%r14d
  je     L180
  mov    %r14d,%edx
  jle    L201
  nopl   (%rax)
L28:
  xor    %ecx,%ecx
  add    (%rbx),%edx
  setb   %cl
  mov    %edx,(%rbx)
  add    $0x4,%rbx
  mov    $0x1,%edx
  test   %ecx,%ecx
  jne    L28
L180:
  test   %eax,%eax
  je     L9
  jle    L135
  nopl   0x0(%rax,%rax,1)
L164:
  xor    %edx,%edx
  add    0x0(%rbp),%eax
  setb   %dl
  mov    %eax,0x0(%rbp)
  add    $0x4,%rbp
  mov    $0x1,%eax
  test   %edx,%edx
  jne    L164
L9:
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L0:
  cmp    $0x4,%eax
  jne    L255
  mov    %r11,%rdx
  mov    %r10,%rsi
  mov    %r13d,%ecx
  mov    %rbx,%rdi
  mov    %r11,0x28(%rsp)
  call   <bn_sub_words@plt>
  mov    %r13d,%ecx
  mov    %r14,%rdx
  mov    %r15,%rsi
  mov    %rbp,%rdi
  call   <bn_sub_words@plt>
  movl   $0x0,0x20(%rsp)
  mov    0x28(%rsp),%r11
  jmp    L223
  nopw   0x0(%rax,%rax,1)
L136:
  call   <bn_add_words@plt>
  mov    0x8(%rsp),%r14d
  mov    %r13d,%ecx
  mov    %r15,%rdx
  mov    %rbx,%rsi
  mov    %rbx,%rdi
  add    %eax,%r14d
  call   <bn_add_words@plt>
  mov    %r13d,%ecx
  mov    %rbp,%rdx
  mov    %rbx,%rsi
  mov    %rbx,%rdi
  mov    %rax,%r12
  call   <bn_add_words@plt>
  mov    0x10(%rsp),%rdx
  mov    %r13d,%ecx
  mov    %rbx,%rsi
  mov    %rbx,%rdi
  add    %eax,%r12d
  call   <bn_add_words@plt>
  add    %r12d,%eax
  jmp    L68
  nopl   0x0(%rax,%rax,1)
L8:
  call   <bn_add_words@plt>
  mov    0x8(%rsp),%rax
  test   %rax,%rax
  jne    L147
L168:
  cmpl   $0x1,0x1c(%rsp)
  jle    L219
  xor    %eax,%eax
  nopl   0x0(%rax)
L111:
  mov    (%r14,%rax,4),%edx
  neg    %edx
  mov    %edx,(%r15,%rax,4)
  add    $0x1,%rax
  cmp    %eax,%r13d
  jg     L111
L219:
  movl   $0x0,0x8(%rsp)
  mov    %r15,%rsi
  jmp    L119
  nopl   0x0(%rax,%rax,1)
L135:
  neg    %eax
  jmp    L293
  nopl   0x0(%rax)
L265:
  mov    $0x1,%eax
L293:
  mov    0x0(%rbp),%edx
  add    $0x4,%rbp
  mov    %edx,%ecx
  sub    %eax,%ecx
  mov    %ecx,-0x4(%rbp)
  cmp    %edx,%eax
  ja     L265
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  cs nopw 0x0(%rax,%rax,1)
L201:
  neg    %edx
  jmp    L242
  nopl   0x0(%rax)
L292:
  mov    $0x1,%edx
L242:
  mov    (%rbx),%ecx
  add    $0x4,%rbx
  mov    %ecx,%esi
  sub    %edx,%esi
  mov    %esi,-0x4(%rbx)
  cmp    %ecx,%edx
  ja     L292
  jmp    L180
  nopl   0x0(%rax,%rax,1)
L288:
  mov    %rbp,%rdx
  mov    %rbx,%rsi
  mov    %r12,%rdi
  call   <bn_mul_comba8@plt>
  mov    0x28(%rsp),%rsi
  mov    %r15,%rdx
  mov    %rbx,%rdi
  call   <bn_mul_comba8@plt>
  jmp    L211
  nopl   0x0(%rax,%rax,1)
L255:
  movl   $0x0,0x20(%rsp)
  jmp    L223
  nopl   (%rax)
L22:
  mov    %r11,%rsi
  mov    %r10,%rdx
  mov    %r13d,%ecx
  mov    %rbx,%rdi
  mov    %r11,0x28(%rsp)
  call   <bn_sub_words@plt>
  mov    %r13d,%ecx
  mov    %r15,%rdx
  mov    %r14,%rsi
  mov    %rbp,%rdi
  call   <bn_sub_words@plt>
  movl   $0x0,0x20(%rsp)
  mov    0x28(%rsp),%r11
  jmp    L223
  nopl   0x0(%rax)
L224:
  mov    %r11,%rdx
  mov    %r10,%rsi
  mov    %r13d,%ecx
  mov    %rbx,%rdi
  mov    %r11,0x28(%rsp)
  call   <bn_sub_words@plt>
  mov    %r13d,%ecx
  mov    %r15,%rdx
  mov    %r14,%rsi
  mov    %rbp,%rdi
  call   <bn_sub_words@plt>
  movl   $0x1,0x20(%rsp)
  mov    0x28(%rsp),%r11
  jmp    L223
```

assistant: ```c
void bn_mul_high(unsigned int *r, unsigned int *a, unsigned int *b, unsigned int *l, int n2, unsigned int *t) {
  int i, n;
  int c1, c2;
  int neg, oneg, zero;
  unsigned int 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, 0, 0, &(t[n2]));
    bn_mul_recursive(r, &(a[n]), &(b[n]), n, 0, 0, &(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) & (0xffffffffL);
  }
  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) & (0xffffffffL);
        r[i++] = ll;
        lc = (lc > ll);
      } while (lc);
    } else {
      lc = -c1;
      do {
        ll = r[i];
        r[i++] = (ll - lc) & (0xffffffffL);
        lc = (lc > ll);
      } while (lc);
    }
  }
  if (c2 != 0) {
    i = n;
    if (c2 > 0) {
      lc = c2;
      do {
        ll = (r[i] + lc) & (0xffffffffL);
        r[i++] = ll;
        lc = (lc > ll);
      } while (lc);
    } else {
      lc = -c2;
      do {
        ll = r[i];
        r[i++] = (ll - lc) & (0xffffffffL);
        lc = (lc > ll);
      } while (lc);
    }
  }
}
```