user: 这段汇编代码用C语言表示是什么样的?

```asm
<bn_div_words>:
  endbr64
  mov    $0xffffffff,%eax
  test   %edx,%edx
  je     L96
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    %edi,%ebx
  mov    %esi,%ebp
  mov    %edx,%r12d
  mov    %edx,%edi
  call   <BN_num_bits_word@plt>
  mov    %eax,%r13d
  cmp    $0x20,%eax
  je     L130
  mov    $0x1,%eax
  mov    %r13d,%ecx
  shl    %cl,%eax
  cmp    %ebx,%eax
  setb   %dil
  movzbl %dil,%edi
  call   <assert@plt>
  mov    $0x20,%eax
  sub    %r13d,%eax
  cmp    %ebx,%r12d
  ja     L75
L21:
  sub    %r12d,%ebx
L75:
  test   %eax,%eax
  je     L84
  mov    %eax,%ecx
  shl    %cl,%r12d
  shl    %cl,%ebx
  mov    %ebp,%edx
  mov    %r13d,%ecx
  shr    %cl,%edx
  or     %edx,%ebx
  mov    %eax,%ecx
  shl    %cl,%ebp
L84:
  mov    %r12d,%edi
  shr    $0x10,%edi
  movzwl %r12w,%r8d
  mov    $0x2,%r9d
  mov    $0x0,%r10d
  jmp    L142
L113:
  mov    %esi,%edx
  shl    $0x10,%edx
  shr    $0x10,%esi
  cmp    %edx,%ebp
  adc    %esi,%r11d
  cmp    %r11d,%ebx
  jae    L60
  add    %r12d,%ebx
  sub    $0x1,%eax
L60:
  sub    $0x1,%r9d
  je     L0
  sub    %edx,%ebp
  shl    $0x10,%eax
  mov    %eax,%r10d
  sub    %r11d,%ebx
  shl    $0x10,%ebx
  mov    %ebp,%eax
  shr    $0x10,%eax
  or     %eax,%ebx
  shl    $0x10,%ebp
L142:
  mov    %ebx,%edx
  shr    $0x10,%edx
  mov    $0xffff,%eax
  cmp    %edi,%edx
  je     L87
  mov    %ebx,%eax
  mov    $0x0,%edx
  div    %edi
L87:
  mov    %eax,%r11d
  imul   %edi,%r11d
  mov    %eax,%esi
  imul   %r8d,%esi
  mov    %ebx,%edx
  sub    %r11d,%edx
  test   $0xffff0000,%edx
  jne    L113
  mov    %ebp,%r13d
  shr    $0x10,%r13d
  shl    $0x10,%edx
  or     %r13d,%edx
  cmp    %edx,%esi
  jbe    L113
  lea    (%rbx,%rdi,1),%edx
  sub    %r11d,%edx
L132:
  sub    $0x1,%eax
  sub    %edi,%r11d
  sub    %r8d,%esi
  test   $0xffff0000,%edx
  jne    L113
  mov    %edx,%ecx
  shl    $0x10,%ecx
  or     %r13d,%ecx
  add    %edi,%edx
  cmp    %esi,%ecx
  jb     L132
  jmp    L113
L0:
  or     %r10d,%eax
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L130:
  mov    $0x1,%edi
  call   <assert@plt>
  cmp    %ebx,%r12d
  ja     L84
  mov    $0x0,%eax
  jmp    L21
L96:
  ret
```

assistant: ```c
unsigned int bn_div_words(unsigned int h, unsigned int l, unsigned int d) {
  unsigned int dh, dl, q, ret = 0, th, tl, t;
  int i, count = 2;
  if (d == 0)
    return (0xffffffffL);
  i = BN_num_bits_word(d);
  assert((i == 32) || (h > (unsigned int)1 << i));
  i = 32 - i;
  if (h >= d)
    h -= d;
  if (i) {
    d <<= i;
    h = (h << i) | (l >> (32 - i));
    l <<= i;
  }
  dh = (d & (0xffff0000L)) >> 16;
  dl = (d & (0xffff));
  for (;;) {
    if ((h >> 16) == dh)
      q = (0xffff);
    else
      q = h / dh;
    th = q * dh;
    tl = dl * q;
    for (;;) {
      t = h - th;
      if ((t & (0xffff0000L)) || ((tl) <= ((t << 16) | ((l & (0xffff0000L)) >> 16))))
        break;
      q--;
      th -= dh;
      tl -= dl;
    }
    t = (tl >> 16);
    tl = (tl << 16) & (0xffff0000L);
    th += t;
    if (l < tl)
      th++;
    l -= tl;
    if (h < th) {
      h += d;
      q--;
    }
    h -= th;
    if (--count == 0)
      break;
    ret = q << 16;
    h = ((h << 16) | (l >> 16)) & (0xffffffffL);
    l = (l & (0xffff)) << 16;
  }
  ret |= q;
  return ret;
}
```