user: What would the C source look like for the assembly code provided here?

```asm
<__edivm>:
  endbr64
  push   %r15
  push   %r14
  mov    %rdi,%r14
  mov    %rsi,%rdi
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rsi,%rbx
  sub    $0x58,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x48(%rsp)
  mov    (%rsi),%eax
  lea    0x14(%rsp),%r12
  lea    0x22(%rsp),%r15
  movq   $0x0,0x14(%rsp)
  movl   $0x0,0x1c(%rsp)
  lea    0x30(%rsp),%rbp
  mov    %eax,0x10(%rsp)
  xor    %eax,%eax
  mov    %ax,0x20(%rsp)
  call   <__eshdn1@plt>
  movzwl 0x6(%r14),%ecx
  mov    %rcx,%rax
  mov    %rcx,0x8(%rsp)
  shl    $0x10,%rax
  sub    %rcx,%rax
  mov    %rax,(%rsp)
  jmp    L94
  nopl   (%rax)
L48:
  xor    %edx,%edx
  divq   0x8(%rsp)
  mov    %eax,%r13d
  movzwl %ax,%edi
L55:
  mov    %r14,%rsi
  mov    %rbp,%rdx
  call   <__m16m@plt>
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  call   <__ecmpm@plt>
  test   %rax,%rax
  jg     L24
L86:
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  add    $0x2,%r12
  call   <__esubm@plt>
  mov    %rbx,%rdi
  mov    %r13w,-0x2(%r12)
  call   <__eshup6@plt>
  cmp    %r12,%r15
  je     L88
L94:
  movzwl 0x4(%rbx),%eax
  movzwl 0x6(%rbx),%edx
  shl    $0x10,%rax
  add    %rdx,%rax
  cmp    %rax,(%rsp)
  jae    L48
  mov    $0xffff,%edi
  mov    $0xffffffff,%r13d
  jmp    L55
  nopl   0x0(%rax)
L24:
  mov    %rbp,%rsi
  mov    %r14,%rdi
  call   <__esubm@plt>
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  call   <__ecmpm@plt>
  test   %rax,%rax
  jg     L70
  sub    $0x1,%r13d
  jmp    L86
  nopl   0x0(%rax)
L70:
  mov    %rbp,%rsi
  mov    %r14,%rdi
  sub    $0x2,%r13d
  call   <__esubm@plt>
  jmp    L86
  nopl   0x0(%rax)
L88:
  lea    0x4(%rbx),%rax
  lea    0x12(%rbx),%rcx
  xor    %edx,%edx
  nopw   0x0(%rax,%rax,1)
L27:
  add    $0x2,%rax
  or     -0x2(%rax),%dx
  cmp    %rcx,%rax
  jne    L27
  movzwl 0x20(%rsp),%eax
  movdqa 0x10(%rsp),%xmm0
  mov    %ax,0x10(%rbx)
  xor    %eax,%eax
  test   %dx,%dx
  movups %xmm0,(%rbx)
  setne  %al
  mov    0x48(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L77
  add    $0x58,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L77:
  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);
}
```