user: Converte this assembly snippet into its equivalent C code:

```asm
<softfloat_shiftRightJamM>:
  endbr64
  push   %r13
  push   %r12
  mov    %rcx,%r12
  push   %rbp
  movslq %edi,%rbp
  push   %rbx
  mov    %edx,%ebx
  sub    $0x8,%rsp
  sar    $0x5,%ebx
  je     L17
  cmp    %ebp,%ebx
  mov    %ebp,%edi
  cmovg  %ebp,%ebx
  sub    %ebx,%edi
  lea    -0x1(%rbx),%ecx
  mov    %ebx,%r13d
  movslq %edi,%rax
  lea    (%rsi,%rax,4),%rax
  lea    0x4(%rax,%rcx,4),%rcx
  jmp    L63
  nopl   0x0(%rax)
L107:
  cmp    %rcx,%rax
  je     L169
L63:
  mov    (%rax),%ebx
  add    $0x4,%rax
  test   %ebx,%ebx
  je     L107
L169:
  mov    %r12,%r8
L178:
  cmp    %ebp,%r13d
  jge    L171
  and    $0x1f,%edx
  jne    L137
  movslq %ebp,%rdx
  movslq %edi,%rax
  shl    $0x2,%rdx
  shl    $0x2,%rax
  lea    -0x4(%r12,%rdx,1),%r8
  lea    -0x8(%rsi,%rax,1),%r10
  mov    %r8,%r9
  lea    -0x4(%rsi,%rax,1),%rcx
  sub    %r10,%r9
  add    $0x8,%r9
  cmp    $0x8,%r9
  lea    -0x1(%rdi),%r9d
  jbe    L92
  cmp    $0x2,%r9d
  jbe    L92
  lea    -0x10(%rsi,%rax,1),%r9
  lea    -0x10(%r12,%rdx,1),%rsi
  mov    %edi,%edx
  xor    %eax,%eax
  shr    $0x2,%edx
  neg    %rdx
  shl    $0x4,%rdx
  nopl   0x0(%rax,%rax,1)
L155:
  movdqu (%r9,%rax,1),%xmm0
  movups %xmm0,(%rsi,%rax,1)
  sub    $0x10,%rax
  cmp    %rax,%rdx
  jne    L155
  mov    %edi,%edx
  mov    %edi,%esi
  and    $0xfffffffc,%edx
  mov    %edx,%eax
  sub    %edx,%esi
  neg    %rax
  shl    $0x2,%rax
  add    %rax,%rcx
  add    %r8,%rax
  cmp    %edx,%edi
  je     L44
  mov    (%rcx),%edx
  mov    %edx,(%rax)
  cmp    $0x1,%esi
  je     L44
  mov    -0x4(%rcx),%edx
  mov    %edx,-0x4(%rax)
  cmp    $0x2,%esi
  je     L44
  mov    -0x8(%rcx),%edx
  mov    %edx,-0x8(%rax)
L44:
  mov    %r12,%r8
L171:
  lea    -0x1(%r13),%eax
  xor    %esi,%esi
  mov    %r8,%rdi
  lea    0x4(,%rax,4),%rdx
  call   <memset@plt>
L77:
  test   %ebx,%ebx
  je     L5
  orl    $0x1,-0x4(%r12,%rbp,4)
L5:
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nopw   0x0(%rax,%rax,1)
L17:
  mov    %ebp,%edi
  xor    %r13d,%r13d
  jmp    L178
  nopw   0x0(%rax,%rax,1)
L137:
  movslq %r13d,%rax
  lea    (%r12,%rax,4),%rcx
  call   <softfloat_shortShiftRightJamM@plt>
  test   %r13d,%r13d
  je     L77
  mov    %r12,%r8
  jmp    L171
L92:
  not    %r9
  xor    %eax,%eax
  lea    0x0(,%r9,4),%rdx
  nopl   0x0(%rax,%rax,1)
L70:
  mov    (%rcx,%rax,1),%esi
  mov    %esi,(%r8,%rax,1)
  sub    $0x4,%rax
  cmp    %rdx,%rax
  jne    L70
  jmp    L44
```

assistant: ```c
void softfloat_shiftRightJamM(uint_fast8_t size_words, const uint32_t *aPtr, uint32_t count, uint32_t *zPtr) {
  uint32_t wordJam, wordCount, *ptr;
  uint_fast8_t i, innerCount;
  wordJam = 0;
  wordCount = count >> 5;
  if (wordCount) {
    if (size_words < wordCount)
      wordCount = size_words;
    ptr = (uint32_t *)(aPtr + ((size_words) - (wordCount)));
    i = wordCount;
    do {
      wordJam = *ptr++;
      if (wordJam)
        break;
      --i;
    } while (i);
    ptr = zPtr;
  }
  if (wordCount < size_words) {
    aPtr += 0;
    innerCount = count & 31;
    if (innerCount) {
      softfloat_shortShiftRightJamM(size_words - wordCount, aPtr, innerCount, zPtr + (wordCount));
      if (!wordCount)
        goto wordJam;
    } else {
      aPtr += ((size_words - wordCount) - 1);
      ptr = zPtr + ((size_words)-1);
      for (i = size_words - wordCount; i; --i) {
        *ptr = *aPtr;
        aPtr += -1;
        ptr += -1;
      }
    }
    ptr = zPtr + 0;
  }
  do {
    *ptr++ = 0;
    --wordCount;
  } while (wordCount);
wordJam:
  if (wordJam)
    zPtr[((size_words)-1)] |= 1;
}
```