user: 请将以下的汇编代码转换成C语言代码：

```asm
<__edivm>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x58,%rsp
  mov    %rdi,%r14
  mov    %rsi,%rbx
  mov    %fs:0x28,%rax
  mov    %rax,0x48(%rsp)
  xor    %eax,%eax
  movzwl (%rsi),%eax
  mov    %ax,0x10(%rsp)
  movzwl 0x2(%rsi),%eax
  mov    %ax,0x12(%rsp)
  lea    0x14(%rsp),%rax
  lea    0x22(%rsp),%rdx
L87:
  add    $0x2,%rax
  movw   $0x0,-0x2(%rax)
  cmp    %rdx,%rax
  jne    L87
  mov    %rbx,%rdi
  call   <__eshdn1@plt>
  movzwl 0x6(%r14),%esi
  mov    %rsi,0x8(%rsp)
  mov    %rsi,%rax
  shl    $0x10,%rax
  sub    %rsi,%rax
  mov    %rax,(%rsp)
  lea    0x14(%rsp),%r13
  lea    0x22(%rsp),%r15
  lea    0x30(%rsp),%r12
  jmp    L47
L93:
  movzwl %bp,%edi
  mov    %r12,%rdx
  mov    %r14,%rsi
  call   <__m16m@plt>
  mov    %rbx,%rsi
  mov    %r12,%rdi
  call   <__ecmpm@plt>
  test   %rax,%rax
  jg     L89
L23:
  mov    %rbx,%rsi
  mov    %r12,%rdi
  call   <__esubm@plt>
  mov    %bp,0x0(%r13)
  mov    %rbx,%rdi
  call   <__eshup6@plt>
  add    $0x2,%r13
  cmp    %r15,%r13
  je     L56
L47:
  movzwl 0x4(%rbx),%eax
  shl    $0x10,%rax
  movzwl 0x6(%rbx),%edx
  add    %rdx,%rax
  mov    $0xffffffff,%ebp
  cmp    %rax,(%rsp)
  jb     L93
  mov    $0x0,%edx
  divq   0x8(%rsp)
  mov    %rax,%rbp
  jmp    L93
L89:
  mov    %r12,%rsi
  mov    %r14,%rdi
  call   <__esubm@plt>
  mov    %rbx,%rsi
  mov    %r12,%rdi
  call   <__ecmpm@plt>
  test   %rax,%rax
  jg     L16
  sub    $0x1,%ebp
  jmp    L23
L16:
  sub    $0x2,%ebp
  mov    %r12,%rsi
  mov    %r14,%rdi
  call   <__esubm@plt>
  jmp    L23
L56:
  lea    0x4(%rbx),%rdx
  lea    0x12(%rbx),%rcx
  mov    $0x0,%eax
L68:
  add    $0x2,%rdx
  or     -0x2(%rdx),%ax
  cmp    %rdx,%rcx
  jne    L68
  cmp    $0x0,%ax
  mov    $0x1,%edx
  cmova  %edx,%eax
  mov    $0x0,%edx
L115:
  movzwl 0x10(%rsp,%rdx,1),%ecx
  mov    %cx,(%rbx,%rdx,1)
  add    $0x2,%rdx
  cmp    $0x12,%rdx
  jne    L115
  movzwl %ax,%eax
  mov    0x48(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L103
  add    $0x58,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L103:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int __edivm(short unsigned int *den, short unsigned int *num) {
  int i;
  register unsigned short *p;
  unsigned long tnum;
  unsigned short j, tdenm, tquot;
  unsigned short tprod[(6 + 3) + 1];
  unsigned short equot[(6 + 3)];
  p = &equot[0];
  *p++ = num[0];
  *p++ = num[1];
  for (i = 2; i < (6 + 3); i++) {
    *p++ = 0;
  }
  __eshdn1(num);
  tdenm = den[2 + 1];
  for (i = 2; i < (6 + 3); i++) {
    tnum = (((unsigned long)num[2]) << 16) + num[2 + 1];
    if ((tdenm * 0xffffUL) < tnum)
      tquot = 0xffff;
    else
      tquot = tnum / tdenm;
    __m16m(tquot, den, tprod);
    if (__ecmpm(tprod, num) > 0) {
      tquot -= 1;
      __esubm(den, tprod);
      if (__ecmpm(tprod, num) > 0) {
        tquot -= 1;
        __esubm(den, tprod);
      }
    }
    __esubm(tprod, num);
    equot[i] = tquot;
    __eshup6(num);
  }
  p = &num[2];
  j = 0;
  for (i = 2; i < (6 + 3); i++) {
    j |= *p++;
  }
  if (j)
    j = 1;
  for (i = 0; i < (6 + 3); i++)
    num[i] = equot[i];
  return ((int)j);
}
```