user: 请从给定的汇编指令推导出C源代码：

```asm
<sha1_hash_block>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x188,%rsp
  mov    %rdi,0x28(%rsp)
  lea    0x30(%rsp),%rdx
  lea    0x70(%rsp),%rdi
  mov    %fs:0x28,%rax
  mov    %rax,0x178(%rsp)
  xor    %eax,%eax
  mov    %rdx,0x20(%rsp)
  nopl   0x0(%rax)
L84:
  movzbl (%rsi),%eax
  movzbl 0x1(%rsi),%ecx
  add    $0x4,%rdx
  add    $0x4,%rsi
  shl    $0x10,%ecx
  shl    $0x18,%eax
  or     %ecx,%eax
  movzbl -0x1(%rsi),%ecx
  or     %ecx,%eax
  movzbl -0x2(%rsi),%ecx
  shl    $0x8,%ecx
  or     %ecx,%eax
  mov    %eax,-0x4(%rdx)
  cmp    %rdi,%rdx
  jne    L84
  mov    0x20(%rsp),%rbx
  lea    0x100(%rbx),%rbp
  nopw   0x0(%rax,%rax,1)
L86:
  mov    0x34(%rbx),%edi
  mov    $0x1,%esi
  xor    0x20(%rbx),%edi
  add    $0x4,%rbx
  xor    0x4(%rbx),%edi
  xor    -0x4(%rbx),%edi
  call   <sha1_rol@plt>
  mov    %eax,0x3c(%rbx)
  cmp    %rbx,%rbp
  jne    L86
  mov    0x28(%rsp),%rax
  mov    0x20(%rsp),%r14
  mov    0xc(%rax),%edx
  mov    (%rax),%r15d
  mov    0x4(%rax),%r13d
  mov    0x8(%rax),%ebp
  mov    0x10(%rax),%eax
  mov    %edx,0xc(%rsp)
  mov    %eax,0x10(%rsp)
  lea    0x50(%r14),%rax
  mov    %rax,0x18(%rsp)
  jmp    L32
  nop
L14:
  mov    %ebp,0xc(%rsp)
  mov    %r12d,%r15d
  mov    %ebx,%ebp
L32:
  mov    $0x5,%esi
  mov    %r15d,%edi
  add    $0x4,%r14
  call   <sha1_rol@plt>
  mov    %r13d,%r8d
  mov    %r13d,%ecx
  mov    0x10(%rsp),%r12d
  and    %ebp,%ecx
  not    %r8d
  and    0xc(%rsp),%r8d
  mov    %r13d,%edi
  xor    %ecx,%r8d
  mov    -0x4(%r14),%ecx
  mov    $0x1e,%esi
  mov    %r15d,%r13d
  lea    0x5a827999(%rcx,%rax,1),%eax
  add    %eax,%r8d
  add    %r8d,%r12d
  call   <sha1_rol@plt>
  mov    %eax,%ebx
  mov    0xc(%rsp),%eax
  mov    %eax,0x10(%rsp)
  cmp    %r14,0x18(%rsp)
  jne    L14
  mov    0x20(%rsp),%rax
  lea    0x80(%rsp),%r13
  add    $0xa0,%rax
  mov    %rax,0x18(%rsp)
  jmp    L58
  xchg   %ax,%ax
L68:
  mov    %ebx,%ebp
  mov    %r9d,%r12d
  mov    %r14d,%ebx
L58:
  mov    $0x5,%esi
  mov    %r12d,%edi
  add    $0x4,%r13
  call   <sha1_rol@plt>
  mov    %r15d,%edi
  mov    $0x1e,%esi
  mov    %eax,%r9d
  mov    %r15d,%eax
  mov    %r12d,%r15d
  xor    %ebx,%eax
  xor    %ebp,%eax
  lea    0x6ed9eba1(%rax,%r9,1),%r9d
  add    -0x4(%r13),%r9d
  add    0xc(%rsp),%r9d
  mov    %r9d,0x10(%rsp)
  call   <sha1_rol@plt>
  cmp    %r13,0x18(%rsp)
  mov    %ebp,0xc(%rsp)
  mov    0x10(%rsp),%r9d
  mov    %eax,%r14d
  jne    L68
  mov    0x20(%rsp),%rax
  lea    0xd0(%rsp),%r15
  add    $0xf0,%rax
  mov    %rax,0x10(%rsp)
  jmp    L19
  cs nopw 0x0(%rax,%rax,1)
L17:
  mov    %r14d,%ebx
  mov    %r13d,%r9d
  mov    %ecx,%r14d
L19:
  mov    %r9d,%edi
  mov    $0x5,%esi
  mov    %r14d,%r13d
  mov    %r9d,0xc(%rsp)
  call   <sha1_rol@plt>
  xor    %ebx,%r13d
  mov    %r14d,%ecx
  mov    %r12d,%edi
  and    %r12d,%r13d
  and    %ebx,%ecx
  mov    $0x1e,%esi
  add    $0x4,%r15
  xor    %ecx,%r13d
  mov    -0x4(%r15),%ecx
  lea    -0x70e44324(%rcx,%rax,1),%eax
  add    %eax,%r13d
  call   <sha1_rol@plt>
  mov    0xc(%rsp),%r9d
  add    %ebp,%r13d
  mov    %ebx,%ebp
  mov    %eax,%ecx
  mov    %r9d,%r12d
  cmp    %r15,0x10(%rsp)
  jne    L17
  mov    0x20(%rsp),%r15
  lea    0x120(%rsp),%r12
  add    $0x140,%r15
  jmp    L8
  nopw   0x0(%rax,%rax,1)
L106:
  mov    %ecx,%r14d
  mov    %ebp,%r13d
  mov    %eax,%ecx
L8:
  mov    $0x5,%esi
  mov    %r13d,%edi
  mov    %ecx,0xc(%rsp)
  add    $0x4,%r12
  mov    %r9d,0x10(%rsp)
  call   <sha1_rol@plt>
  mov    0x10(%rsp),%r9d
  mov    0xc(%rsp),%ecx
  mov    $0x1e,%esi
  mov    %eax,%r8d
  mov    %r9d,%eax
  mov    %r9d,%edi
  xor    %ecx,%eax
  xor    %r14d,%eax
  lea    -0x359d3e2a(%rax,%r8,1),%ebp
  add    -0x4(%r12),%ebp
  call   <sha1_rol@plt>
  add    %ebx,%ebp
  cmp    %r12,%r15
  mov    0xc(%rsp),%ecx
  mov    %r13d,%r9d
  mov    %r14d,%ebx
  jne    L106
  mov    0x28(%rsp),%rdx
  add    %ebp,(%rdx)
  add    %r13d,0x4(%rdx)
  add    %eax,0x8(%rdx)
  add    %ecx,0xc(%rdx)
  add    %r14d,0x10(%rdx)
  mov    0x178(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L66
  add    $0x188,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L66:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void sha1_hash_block(unsigned int state[5], const unsigned char *block) {
  int i;
  unsigned int a, b, c, d, e;
  unsigned int w[80];
  for (i = 0; i < 16; ++i)
    w[i] = (((unsigned int)block[(i * 4) + 0]) << 24) | (((unsigned int)block[(i * 4) + 1]) << 16) | (((unsigned int)block[(i * 4) + 2]) << 8) | (((unsigned int)block[(i * 4) + 3]) << 0);
  for (i = 16; i < 80; ++i)
    w[i] = sha1_rol(w[i - 3] ^ w[i - 8] ^ w[i - 14] ^ w[i - 16], 1);
  a = state[0];
  b = state[1];
  c = state[2];
  d = state[3];
  e = state[4];
  for (i = (0); i < (20); ++i) {
    unsigned int t = sha1_rol(a, 5) + (((b & c) ^ (~b & d))) + e + (0x5a827999) + w[i];
    e = d;
    d = c;
    c = sha1_rol(b, 30);
    b = a;
    a = t;
  }
  for (i = (20); i < (40); ++i) {
    unsigned int t = sha1_rol(a, 5) + ((b ^ c ^ d)) + e + (0x6ed9eba1) + w[i];
    e = d;
    d = c;
    c = sha1_rol(b, 30);
    b = a;
    a = t;
  }
  for (i = (40); i < (60); ++i) {
    unsigned int t = sha1_rol(a, 5) + (((b & c) ^ (b & d) ^ (c & d))) + e + (0x8f1bbcdc) + w[i];
    e = d;
    d = c;
    c = sha1_rol(b, 30);
    b = a;
    a = t;
  }
  for (i = (60); i < (80); ++i) {
    unsigned int t = sha1_rol(a, 5) + ((b ^ c ^ d)) + e + (0xca62c1d6) + w[i];
    e = d;
    d = c;
    c = sha1_rol(b, 30);
    b = a;
    a = t;
  }
  state[0] += a;
  state[1] += b;
  state[2] += c;
  state[3] += d;
  state[4] += e;
}
```