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

```asm
<innerHash>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %rdi,%rbx
  mov    %rsi,%r12
  mov    (%rdi),%eax
  mov    %eax,(%rsp)
  mov    0x4(%rdi),%eax
  mov    %eax,0x4(%rsp)
  mov    0x8(%rdi),%eax
  mov    %eax,0x8(%rsp)
  mov    0xc(%rdi),%r13d
  mov    0x10(%rdi),%eax
  mov    %eax,0xc(%rsp)
  lea    0x40(%rsi),%r15
  mov    %rsi,%r14
L42:
  mov    $0x5,%esi
  mov    (%rbx),%edi
  call   <rol@plt>
  mov    %eax,%esi
  mov    0x4(%rbx),%edi
  mov    0x8(%rbx),%ecx
  mov    0xc(%rbx),%edx
  mov    %ecx,%eax
  xor    %edx,%eax
  and    %edi,%eax
  xor    %edx,%eax
  mov    0x10(%rbx),%r8d
  lea    0x5a827999(%rax,%r8,1),%ebp
  add    %esi,%ebp
  add    (%r14),%ebp
  mov    %edx,0x10(%rbx)
  mov    %ecx,0xc(%rbx)
  mov    $0x1e,%esi
  call   <rol@plt>
  mov    %eax,0x8(%rbx)
  mov    (%rbx),%eax
  mov    %eax,0x4(%rbx)
  mov    %ebp,(%rbx)
  add    $0x4,%r14
  cmp    %r15,%r14
  jne    L42
  lea    0x10(%r12),%r15
  mov    %r12,%rbp
L6:
  mov    0x34(%rbp),%edi
  xor    0x20(%rbp),%edi
  xor    0x8(%rbp),%edi
  xor    0x0(%rbp),%edi
  mov    $0x1,%esi
  call   <rol@plt>
  mov    %eax,0x40(%rbp)
  mov    $0x5,%esi
  mov    (%rbx),%edi
  call   <rol@plt>
  mov    %eax,%esi
  mov    0x4(%rbx),%edi
  mov    0x8(%rbx),%ecx
  mov    0xc(%rbx),%edx
  mov    %ecx,%eax
  xor    %edx,%eax
  and    %edi,%eax
  xor    %edx,%eax
  mov    0x10(%rbx),%r8d
  lea    0x5a827999(%rax,%r8,1),%r14d
  add    %esi,%r14d
  add    0x40(%rbp),%r14d
  mov    %edx,0x10(%rbx)
  mov    %ecx,0xc(%rbx)
  mov    $0x1e,%esi
  call   <rol@plt>
  mov    %eax,0x8(%rbx)
  mov    (%rbx),%eax
  mov    %eax,0x4(%rbx)
  mov    %r14d,(%rbx)
  add    $0x4,%rbp
  cmp    %r15,%rbp
  jne    L6
  lea    0x10(%r12),%rbp
  lea    0x60(%r12),%r15
L23:
  mov    0x34(%rbp),%edi
  xor    0x20(%rbp),%edi
  xor    0x8(%rbp),%edi
  xor    0x0(%rbp),%edi
  mov    $0x1,%esi
  call   <rol@plt>
  mov    %eax,0x40(%rbp)
  mov    $0x5,%esi
  mov    (%rbx),%edi
  call   <rol@plt>
  mov    %eax,%esi
  mov    0x4(%rbx),%edi
  mov    0x8(%rbx),%edx
  mov    0xc(%rbx),%ecx
  mov    %edi,%eax
  xor    %edx,%eax
  xor    %ecx,%eax
  add    0x10(%rbx),%eax
  lea    0x6ed9eba1(%rax,%rsi,1),%r14d
  add    0x40(%rbp),%r14d
  mov    %ecx,0x10(%rbx)
  mov    %edx,0xc(%rbx)
  mov    $0x1e,%esi
  call   <rol@plt>
  mov    %eax,0x8(%rbx)
  mov    (%rbx),%eax
  mov    %eax,0x4(%rbx)
  mov    %r14d,(%rbx)
  add    $0x4,%rbp
  cmp    %r15,%rbp
  jne    L23
  lea    0x60(%r12),%rbp
  lea    0xb0(%r12),%r15
L5:
  mov    0x34(%rbp),%edi
  xor    0x20(%rbp),%edi
  xor    0x8(%rbp),%edi
  xor    0x0(%rbp),%edi
  mov    $0x1,%esi
  call   <rol@plt>
  mov    %eax,0x40(%rbp)
  mov    $0x5,%esi
  mov    (%rbx),%edi
  call   <rol@plt>
  mov    %eax,%esi
  mov    0x4(%rbx),%edi
  mov    0x8(%rbx),%edx
  mov    0xc(%rbx),%ecx
  mov    %edx,%eax
  or     %ecx,%eax
  and    %edi,%eax
  mov    %edx,%r8d
  and    %ecx,%r8d
  or     %r8d,%eax
  mov    0x10(%rbx),%r8d
  lea    -0x70e44324(%rax,%r8,1),%r14d
  add    %esi,%r14d
  add    0x40(%rbp),%r14d
  mov    %ecx,0x10(%rbx)
  mov    %edx,0xc(%rbx)
  mov    $0x1e,%esi
  call   <rol@plt>
  mov    %eax,0x8(%rbx)
  mov    (%rbx),%eax
  mov    %eax,0x4(%rbx)
  mov    %r14d,(%rbx)
  add    $0x4,%rbp
  cmp    %r15,%rbp
  jne    L5
  lea    0xb0(%r12),%rbp
  add    $0x100,%r12
L22:
  mov    0x34(%rbp),%edi
  xor    0x20(%rbp),%edi
  xor    0x8(%rbp),%edi
  xor    0x0(%rbp),%edi
  mov    $0x1,%esi
  call   <rol@plt>
  mov    %eax,0x40(%rbp)
  mov    $0x5,%esi
  mov    (%rbx),%edi
  call   <rol@plt>
  mov    %eax,%esi
  mov    0x4(%rbx),%edi
  mov    0x8(%rbx),%edx
  mov    0xc(%rbx),%ecx
  mov    %edi,%eax
  xor    %edx,%eax
  xor    %ecx,%eax
  mov    0x10(%rbx),%r8d
  lea    -0x359d3e2a(%rax,%r8,1),%r14d
  add    %esi,%r14d
  add    0x40(%rbp),%r14d
  mov    %ecx,0x10(%rbx)
  mov    %edx,0xc(%rbx)
  mov    $0x1e,%esi
  call   <rol@plt>
  mov    %eax,0x8(%rbx)
  mov    (%rbx),%edx
  mov    %edx,0x4(%rbx)
  mov    %r14d,(%rbx)
  add    $0x4,%rbp
  cmp    %r12,%rbp
  jne    L22
  mov    (%rsp),%ecx
  add    %r14d,%ecx
  mov    %ecx,(%rbx)
  add    0x4(%rsp),%edx
  mov    %edx,0x4(%rbx)
  add    0x8(%rsp),%eax
  mov    %eax,0x8(%rbx)
  add    %r13d,0xc(%rbx)
  mov    0xc(%rsp),%eax
  add    %eax,0x10(%rbx)
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
void innerHash(unsigned int *result, unsigned int *w) {
  unsigned int save[5];
  save[0] = result[0];
  save[1] = result[1];
  save[2] = result[2];
  save[3] = result[3];
  save[4] = result[4];
  int j = 0;
  while (j < 16) {
    {
      const unsigned int t = rol(result[0], 5) + ((result[1] & result[2]) | (~result[1] & result[3])) + result[4] + 0x5A827999 + w[j];
      result[4] = result[3];
      result[3] = result[2];
      result[2] = rol(result[1], 30);
      result[1] = result[0];
      result[0] = t;
    }
    j++;
  }
  while (j < 20) {
    w[j] = rol((w[j - 3] ^ w[j - 8] ^ w[j - 14] ^ w[j - 16]), 1);
    {
      const unsigned int t = rol(result[0], 5) + ((result[1] & result[2]) | (~result[1] & result[3])) + result[4] + 0x5A827999 + w[j];
      result[4] = result[3];
      result[3] = result[2];
      result[2] = rol(result[1], 30);
      result[1] = result[0];
      result[0] = t;
    }
    j++;
  }
  while (j < 40) {
    w[j] = rol((w[j - 3] ^ w[j - 8] ^ w[j - 14] ^ w[j - 16]), 1);
    {
      const unsigned int t = rol(result[0], 5) + (result[1] ^ result[2] ^ result[3]) + result[4] + 0x6ED9EBA1 + w[j];
      result[4] = result[3];
      result[3] = result[2];
      result[2] = rol(result[1], 30);
      result[1] = result[0];
      result[0] = t;
    }
    j++;
  }
  while (j < 60) {
    w[j] = rol((w[j - 3] ^ w[j - 8] ^ w[j - 14] ^ w[j - 16]), 1);
    {
      const unsigned int t = rol(result[0], 5) + ((result[1] & result[2]) | (result[1] & result[3]) | (result[2] & result[3])) + result[4] + 0x8F1BBCDC + w[j];
      result[4] = result[3];
      result[3] = result[2];
      result[2] = rol(result[1], 30);
      result[1] = result[0];
      result[0] = t;
    }
    j++;
  }
  while (j < 80) {
    w[j] = rol((w[j - 3] ^ w[j - 8] ^ w[j - 14] ^ w[j - 16]), 1);
    {
      const unsigned int t = rol(result[0], 5) + (result[1] ^ result[2] ^ result[3]) + result[4] + 0xCA62C1D6 + w[j];
      result[4] = result[3];
      result[3] = result[2];
      result[2] = rol(result[1], 30);
      result[1] = result[0];
      result[0] = t;
    }
    j++;
  }
  result[0] += save[0];
  result[1] += save[1];
  result[2] += save[2];
  result[3] += save[3];
  result[4] += save[4];
}
```