user: Translate the below assembly code into C programming language:

```asm
<bn_mul_high>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %rdi,%rbx
  mov    %rsi,%rdi
  mov    %rsi,0x28(%rsp)
  mov    %rdx,0x18(%rsp)
  mov    %rcx,0x10(%rsp)
  mov    %r8d,%r12d
  mov    %r9,%r13
  mov    %r8d,%ebp
  shr    $0x1f,%ebp
  add    %r8d,%ebp
  sar    %ebp
  movslq %ebp,%rax
  shl    $0x2,%rax
  mov    %rsi,%r15
  mov    %rax,0x8(%rsp)
  add    %rax,%r15
  mov    %ebp,%edx
  mov    %r15,%rsi
  call   <bn_cmp_words@plt>
  mov    %eax,%r14d
  mov    0x18(%rsp),%rsi
  mov    %rsi,%rax
  add    0x8(%rsp),%rax
  mov    %rax,0x20(%rsp)
  mov    %ebp,%edx
  mov    %rax,%rdi
  call   <bn_cmp_words@plt>
  mov    %eax,%edx
  lea    (%r14,%r14,2),%eax
  add    %edx,%eax
  cmp    $0x2,%eax
  je     L181
  jg     L40
  cmp    $0xfffffffc,%eax
  je     L273
  cmp    $0xfffffffe,%eax
  jne    L21
  mov    %ebp,%ecx
  mov    0x28(%rsp),%rdx
  mov    %r15,%rsi
  mov    %rbx,%rdi
  call   <bn_sub_words@plt>
  mov    0x8(%rsp),%rax
  lea    (%rbx,%rax,1),%rdi
  mov    %ebp,%ecx
  mov    0x18(%rsp),%rdx
  mov    0x20(%rsp),%rsi
  call   <bn_sub_words@plt>
  movl   $0x1,0x18(%rsp)
  jmp    L301
L21:
  movl   $0x0,0x18(%rsp)
  jmp    L301
L40:
  cmp    $0x4,%eax
  jne    L13
  mov    %ebp,%ecx
  mov    %r15,%rdx
  mov    0x28(%rsp),%rsi
  mov    %rbx,%rdi
  call   <bn_sub_words@plt>
  mov    0x8(%rsp),%rax
  lea    (%rbx,%rax,1),%rdi
  mov    %ebp,%ecx
  mov    0x18(%rsp),%rdx
  mov    0x20(%rsp),%rsi
  call   <bn_sub_words@plt>
  movl   $0x0,0x18(%rsp)
  jmp    L301
L13:
  movl   $0x0,0x18(%rsp)
L301:
  cmp    $0x8,%ebp
  je     L319
  movslq %r12d,%rax
  lea    0x0(%r13,%rax,4),%r14
  mov    0x8(%rsp),%rax
  lea    (%rbx,%rax,1),%rdx
  sub    $0x8,%rsp
  push   %r14
  mov    $0x0,%r9d
  mov    $0x0,%r8d
  mov    %ebp,%ecx
  mov    %rbx,%rsi
  mov    %r13,%rdi
  call   <bn_mul_recursive@plt>
  mov    %r14,(%rsp)
  mov    $0x0,%r9d
  mov    $0x0,%r8d
  mov    %ebp,%ecx
  mov    0x30(%rsp),%rdx
  mov    %r15,%rsi
  mov    %rbx,%rdi
  call   <bn_mul_recursive@plt>
  add    $0x10,%rsp
L84:
  mov    %rbx,%r14
  mov    0x10(%rsp),%rdx
  test   %rdx,%rdx
  je     L342
  lea    (%r12,%rbp,1),%eax
  cltq
  lea    0x0(%r13,%rax,4),%r14
  mov    %ebp,%ecx
  mov    %rbx,%rsi
  mov    %r14,%rdi
  call   <bn_add_words@plt>
L342:
  cmpl   $0x0,0x18(%rsp)
  je     L267
  movslq %r12d,%rax
  lea    0x0(%r13,%rax,4),%rdi
  mov    %ebp,%ecx
  mov    %r13,%rdx
  mov    %r14,%rsi
  call   <bn_sub_words@plt>
L163:
  mov    0x10(%rsp),%rdi
  test   %rdi,%rdi
  je     L331
  movslq %r12d,%rax
  lea    0x0(%r13,%rax,4),%r14
  lea    (%r12,%rbp,1),%eax
  cltq
  lea    0x0(%r13,%rax,4),%r15
  mov    %rdi,%rsi
  add    0x8(%rsp),%rsi
  mov    %ebp,%ecx
  mov    %r14,%rdx
  mov    %r15,%rdi
  call   <bn_sub_words@plt>
  mov    %ebp,%ecx
  mov    0x10(%rsp),%rdx
  mov    %r15,%rsi
  mov    %r14,%rdi
  call   <bn_add_words@plt>
  mov    %eax,0x10(%rsp)
L129:
  movslq %r12d,%rax
  lea    0x0(%r13,%rax,4),%r15
  mov    %ebp,%ecx
  mov    %rbx,%rdx
  mov    %r14,%rsi
  mov    %r15,%rdi
  call   <bn_add_words@plt>
  mov    0x10(%rsp),%r14d
  add    %eax,%r14d
  cmpl   $0x0,0x18(%rsp)
  je     L179
  mov    %ebp,%ecx
  mov    %r13,%rdx
  mov    %r15,%rsi
  mov    %r15,%rdi
  call   <bn_sub_words@plt>
  sub    %eax,%r14d
  add    %ebp,%r12d
  movslq %r12d,%r12
  lea    0x0(%r13,%r12,4),%rdx
  mov    %ebp,%ecx
  mov    %rbx,%rsi
  mov    %rbx,%rdi
  call   <bn_add_words@plt>
  mov    %rax,%r12
  mov    0x8(%rsp),%r15
  lea    (%rbx,%r15,1),%rdx
  mov    %ebp,%ecx
  mov    %rbx,%rsi
  mov    %rbx,%rdi
  call   <bn_add_words@plt>
  add    %eax,%r12d
  lea    0x0(%r13,%r15,1),%rdx
  mov    %ebp,%ecx
  mov    %rbx,%rsi
  mov    %rbx,%rdi
  call   <bn_sub_words@plt>
  mov    %rax,%rdx
  mov    %r12d,%eax
  sub    %edx,%eax
L182:
  test   %r14d,%r14d
  je     L188
  jle    L308
  mov    %rbx,%rdx
  mov    $0x1,%esi
  jmp    L187
L273:
  mov    %ebp,%ecx
  mov    0x28(%rsp),%rdx
  mov    %r15,%rsi
  mov    %rbx,%rdi
  call   <bn_sub_words@plt>
  mov    0x8(%rsp),%rax
  lea    (%rbx,%rax,1),%rdi
  mov    %ebp,%ecx
  mov    0x20(%rsp),%rdx
  mov    0x18(%rsp),%rsi
  call   <bn_sub_words@plt>
  movl   $0x0,0x18(%rsp)
  jmp    L301
L181:
  mov    %ebp,%ecx
  mov    %r15,%rdx
  mov    0x28(%rsp),%rsi
  mov    %rbx,%rdi
  call   <bn_sub_words@plt>
  mov    0x8(%rsp),%rax
  lea    (%rbx,%rax,1),%rdi
  mov    %ebp,%ecx
  mov    0x20(%rsp),%rdx
  mov    0x18(%rsp),%rsi
  call   <bn_sub_words@plt>
  movl   $0x1,0x18(%rsp)
  jmp    L301
L319:
  mov    0x8(%rsp),%rax
  lea    (%rbx,%rax,1),%rdx
  mov    %rbx,%rsi
  mov    %r13,%rdi
  call   <bn_mul_comba8@plt>
  mov    0x20(%rsp),%rdx
  mov    %r15,%rsi
  mov    %rbx,%rdi
  call   <bn_mul_comba8@plt>
  jmp    L84
L267:
  movslq %r12d,%rax
  lea    0x0(%r13,%rax,4),%rdi
  mov    %ebp,%ecx
  mov    %r13,%rdx
  mov    %r14,%rsi
  call   <bn_add_words@plt>
  jmp    L163
L331:
  lea    (%r12,%rbp,1),%edi
  movslq %edi,%rdi
  movslq %r12d,%rax
  cmp    $0x1,%r12d
  jle    L272
  lea    0x0(%r13,%rax,4),%rsi
  lea    0x0(%r13,%rdi,4),%rcx
  mov    $0x0,%eax
L116:
  mov    (%rsi,%rax,4),%edx
  neg    %edx
  mov    %edx,(%rcx,%rax,4)
  add    $0x1,%rax
  cmp    %eax,%ebp
  jg     L116
L272:
  lea    0x0(%r13,%rdi,4),%r14
  movl   $0x0,0x10(%rsp)
  jmp    L129
L179:
  mov    %ebp,%ecx
  mov    %r13,%rdx
  mov    %r15,%rsi
  mov    %r15,%rdi
  call   <bn_add_words@plt>
  add    %eax,%r14d
  add    %ebp,%r12d
  movslq %r12d,%r12
  lea    0x0(%r13,%r12,4),%rdx
  mov    %ebp,%ecx
  mov    %rbx,%rsi
  mov    %rbx,%rdi
  call   <bn_add_words@plt>
  mov    %rax,%r12
  mov    0x8(%rsp),%r15
  lea    (%rbx,%r15,1),%rdx
  mov    %ebp,%ecx
  mov    %rbx,%rsi
  mov    %rbx,%rdi
  call   <bn_add_words@plt>
  add    %eax,%r12d
  lea    0x0(%r13,%r15,1),%rdx
  mov    %ebp,%ecx
  mov    %rbx,%rsi
  mov    %rbx,%rdi
  call   <bn_add_words@plt>
  add    %r12d,%eax
  jmp    L182
L94:
  mov    %esi,%r14d
L187:
  mov    %r14d,%ecx
  add    (%rdx),%ecx
  mov    %ecx,(%rdx)
  add    $0x4,%rdx
  cmp    %ecx,%r14d
  ja     L94
L188:
  test   %eax,%eax
  je     L332
  jle    L279
  add    0x8(%rsp),%rbx
  mov    $0x1,%ecx
  jmp    L28
L308:
  neg    %r14d
  mov    %rbx,%rdx
  mov    $0x1,%edi
  jmp    L246
L5:
  mov    %edi,%r14d
L246:
  mov    (%rdx),%ecx
  mov    %ecx,%esi
  sub    %r14d,%esi
  mov    %esi,(%rdx)
  add    $0x4,%rdx
  cmp    %ecx,%r14d
  ja     L5
  jmp    L188
L324:
  mov    %ecx,%eax
L28:
  mov    %eax,%edx
  add    (%rbx),%edx
  mov    %edx,(%rbx)
  add    $0x4,%rbx
  cmp    %edx,%eax
  ja     L324
L332:
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L279:
  neg    %eax
  add    0x8(%rsp),%rbx
  mov    $0x1,%esi
  jmp    L234
L180:
  mov    %esi,%eax
L234:
  mov    (%rbx),%edx
  mov    %edx,%ecx
  sub    %eax,%ecx
  mov    %ecx,(%rbx)
  add    $0x4,%rbx
  cmp    %edx,%eax
  ja     L180
  jmp    L332
```

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);
    }
  }
}
```