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

```asm
<g>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x310,%rsp
  mov    %rdi,-0x2f8(%rbp)
  mov    %esi,-0x2fc(%rbp)
  mov    %rdx,-0x308(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0x2f8(%rbp),%rax
  mov    %rax,-0x2c8(%rbp)
  mov    -0x2c8(%rbp),%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x18,%eax
  mov    %eax,%edx
  mov    -0x2c8(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x10,%eax
  or     %eax,%edx
  mov    -0x2c8(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x8,%eax
  or     %eax,%edx
  mov    -0x2c8(%rbp),%rax
  add    $0x3,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  or     %edx,%eax
  cltq
  mov    %rax,-0x2c0(%rbp)
  addq   $0x4,-0x2c8(%rbp)
  mov    -0x2c8(%rbp),%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x18,%eax
  mov    %eax,%edx
  mov    -0x2c8(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x10,%eax
  or     %eax,%edx
  mov    -0x2c8(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x8,%eax
  or     %eax,%edx
  mov    -0x2c8(%rbp),%rax
  add    $0x3,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  or     %edx,%eax
  cltq
  mov    %rax,-0x2b8(%rbp)
  addq   $0x4,-0x2c8(%rbp)
  mov    -0x2c8(%rbp),%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x18,%eax
  mov    %eax,%edx
  mov    -0x2c8(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x10,%eax
  or     %eax,%edx
  mov    -0x2c8(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x8,%eax
  or     %eax,%edx
  mov    -0x2c8(%rbp),%rax
  add    $0x3,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  or     %edx,%eax
  cltq
  mov    %rax,-0x2b0(%rbp)
  addq   $0x4,-0x2c8(%rbp)
  mov    -0x2c8(%rbp),%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x18,%eax
  mov    %eax,%edx
  mov    -0x2c8(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x10,%eax
  or     %eax,%edx
  mov    -0x2c8(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x8,%eax
  or     %eax,%edx
  mov    -0x2c8(%rbp),%rax
  add    $0x3,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  or     %edx,%eax
  cltq
  mov    %rax,-0x2a8(%rbp)
  addq   $0x4,-0x2c8(%rbp)
  mov    -0x2c8(%rbp),%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x18,%eax
  mov    %eax,%edx
  mov    -0x2c8(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x10,%eax
  or     %eax,%edx
  mov    -0x2c8(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x8,%eax
  or     %eax,%edx
  mov    -0x2c8(%rbp),%rax
  add    $0x3,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  or     %edx,%eax
  cltq
  mov    %rax,-0x2a0(%rbp)
  addq   $0x4,-0x2c8(%rbp)
  mov    -0x2fc(%rbp),%eax
  cltq
  mov    %rax,-0x290(%rbp)
  movl   $0x1,-0x2fc(%rbp)
  jmp    L51
L53:
  mov    -0x2fc(%rbp),%eax
  cltq
  movq   $0x0,-0x290(%rbp,%rax,8)
  addl   $0x1,-0x2fc(%rbp)
L51:
  cmpl   $0xf,-0x2fc(%rbp)
  jle    L53
  movl   $0x10,-0x2fc(%rbp)
  jmp    L4
L54:
  mov    -0x2fc(%rbp),%eax
  sub    $0x3,%eax
  cltq
  mov    -0x290(%rbp,%rax,8),%rdx
  mov    -0x2fc(%rbp),%eax
  sub    $0x8,%eax
  cltq
  mov    -0x290(%rbp,%rax,8),%rax
  xor    %rax,%rdx
  mov    -0x2fc(%rbp),%eax
  sub    $0xe,%eax
  cltq
  mov    -0x290(%rbp,%rax,8),%rax
  xor    %rax,%rdx
  mov    -0x2fc(%rbp),%eax
  sub    $0x10,%eax
  cltq
  mov    -0x290(%rbp,%rax,8),%rax
  xor    %rax,%rdx
  mov    -0x2fc(%rbp),%eax
  cltq
  mov    %rdx,-0x290(%rbp,%rax,8)
  addl   $0x1,-0x2fc(%rbp)
L4:
  cmpl   $0x4f,-0x2fc(%rbp)
  jle    L54
  mov    -0x2c0(%rbp),%rax
  mov    %rax,-0x2f0(%rbp)
  mov    -0x2b8(%rbp),%rax
  mov    %rax,-0x2e8(%rbp)
  mov    -0x2b0(%rbp),%rax
  mov    %rax,-0x2e0(%rbp)
  mov    -0x2a8(%rbp),%rax
  mov    %rax,-0x2d8(%rbp)
  mov    -0x2a0(%rbp),%rax
  mov    %rax,-0x2d0(%rbp)
  movl   $0x0,-0x2fc(%rbp)
  jmp    L91
L60:
  mov    -0x2f0(%rbp),%rax
  shr    $0x1b,%rax
  mov    %rax,%rdx
  mov    -0x2f0(%rbp),%rax
  shl    $0x5,%rax
  mov    %rdx,%rcx
  or     %rax,%rcx
  mov    -0x2e8(%rbp),%rax
  and    -0x2e0(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x2e8(%rbp),%rax
  not    %rax
  and    -0x2d8(%rbp),%rax
  or     %rdx,%rax
  lea    (%rcx,%rax,1),%rdx
  mov    -0x2d0(%rbp),%rax
  add    %rax,%rdx
  mov    -0x2fc(%rbp),%eax
  cltq
  mov    -0x290(%rbp,%rax,8),%rax
  add    %rdx,%rax
  add    $0x5a827999,%rax
  mov    %rax,-0x298(%rbp)
  mov    -0x2d8(%rbp),%rax
  mov    %rax,-0x2d0(%rbp)
  mov    -0x2e0(%rbp),%rax
  mov    %rax,-0x2d8(%rbp)
  mov    -0x2e8(%rbp),%rax
  shr    $0x2,%rax
  mov    %rax,%rdx
  mov    -0x2e8(%rbp),%rax
  shl    $0x1e,%rax
  or     %rdx,%rax
  mov    %rax,-0x2e0(%rbp)
  mov    -0x2f0(%rbp),%rax
  mov    %rax,-0x2e8(%rbp)
  mov    -0x298(%rbp),%rax
  mov    %rax,-0x2f0(%rbp)
  addl   $0x1,-0x2fc(%rbp)
L91:
  cmpl   $0x13,-0x2fc(%rbp)
  jle    L60
  movl   $0x14,-0x2fc(%rbp)
  jmp    L79
L64:
  mov    -0x2f0(%rbp),%rax
  shr    $0x1b,%rax
  mov    %rax,%rdx
  mov    -0x2f0(%rbp),%rax
  shl    $0x5,%rax
  or     %rax,%rdx
  mov    -0x2e8(%rbp),%rax
  xor    -0x2e0(%rbp),%rax
  xor    -0x2d8(%rbp),%rax
  add    %rax,%rdx
  mov    -0x2d0(%rbp),%rax
  add    %rax,%rdx
  mov    -0x2fc(%rbp),%eax
  cltq
  mov    -0x290(%rbp,%rax,8),%rax
  add    %rdx,%rax
  add    $0x6ed9eba1,%rax
  mov    %rax,-0x298(%rbp)
  mov    -0x2d8(%rbp),%rax
  mov    %rax,-0x2d0(%rbp)
  mov    -0x2e0(%rbp),%rax
  mov    %rax,-0x2d8(%rbp)
  mov    -0x2e8(%rbp),%rax
  shr    $0x2,%rax
  mov    %rax,%rdx
  mov    -0x2e8(%rbp),%rax
  shl    $0x1e,%rax
  or     %rdx,%rax
  mov    %rax,-0x2e0(%rbp)
  mov    -0x2f0(%rbp),%rax
  mov    %rax,-0x2e8(%rbp)
  mov    -0x298(%rbp),%rax
  mov    %rax,-0x2f0(%rbp)
  addl   $0x1,-0x2fc(%rbp)
L79:
  cmpl   $0x27,-0x2fc(%rbp)
  jle    L64
  movl   $0x28,-0x2fc(%rbp)
  jmp    L119
L104:
  mov    -0x2f0(%rbp),%rax
  shr    $0x1b,%rax
  mov    %rax,%rdx
  mov    -0x2f0(%rbp),%rax
  shl    $0x5,%rax
  mov    %rdx,%rcx
  or     %rax,%rcx
  mov    -0x2e0(%rbp),%rax
  or     -0x2d8(%rbp),%rax
  and    -0x2e8(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x2e0(%rbp),%rax
  and    -0x2d8(%rbp),%rax
  or     %rdx,%rax
  lea    (%rcx,%rax,1),%rdx
  mov    -0x2d0(%rbp),%rax
  add    %rax,%rdx
  mov    -0x2fc(%rbp),%eax
  cltq
  mov    -0x290(%rbp,%rax,8),%rax
  add    %rax,%rdx
  mov    $0x8f1bbcdc,%eax
  add    %rdx,%rax
  mov    %rax,-0x298(%rbp)
  mov    -0x2d8(%rbp),%rax
  mov    %rax,-0x2d0(%rbp)
  mov    -0x2e0(%rbp),%rax
  mov    %rax,-0x2d8(%rbp)
  mov    -0x2e8(%rbp),%rax
  shr    $0x2,%rax
  mov    %rax,%rdx
  mov    -0x2e8(%rbp),%rax
  shl    $0x1e,%rax
  or     %rdx,%rax
  mov    %rax,-0x2e0(%rbp)
  mov    -0x2f0(%rbp),%rax
  mov    %rax,-0x2e8(%rbp)
  mov    -0x298(%rbp),%rax
  mov    %rax,-0x2f0(%rbp)
  addl   $0x1,-0x2fc(%rbp)
L119:
  cmpl   $0x3b,-0x2fc(%rbp)
  jle    L104
  movl   $0x3c,-0x2fc(%rbp)
  jmp    L10
L109:
  mov    -0x2f0(%rbp),%rax
  shr    $0x1b,%rax
  mov    %rax,%rdx
  mov    -0x2f0(%rbp),%rax
  shl    $0x5,%rax
  or     %rax,%rdx
  mov    -0x2e8(%rbp),%rax
  xor    -0x2e0(%rbp),%rax
  xor    -0x2d8(%rbp),%rax
  add    %rax,%rdx
  mov    -0x2d0(%rbp),%rax
  add    %rax,%rdx
  mov    -0x2fc(%rbp),%eax
  cltq
  mov    -0x290(%rbp,%rax,8),%rax
  add    %rax,%rdx
  mov    $0xca62c1d6,%eax
  add    %rdx,%rax
  mov    %rax,-0x298(%rbp)
  mov    -0x2d8(%rbp),%rax
  mov    %rax,-0x2d0(%rbp)
  mov    -0x2e0(%rbp),%rax
  mov    %rax,-0x2d8(%rbp)
  mov    -0x2e8(%rbp),%rax
  shr    $0x2,%rax
  mov    %rax,%rdx
  mov    -0x2e8(%rbp),%rax
  shl    $0x1e,%rax
  or     %rdx,%rax
  mov    %rax,-0x2e0(%rbp)
  mov    -0x2f0(%rbp),%rax
  mov    %rax,-0x2e8(%rbp)
  mov    -0x298(%rbp),%rax
  mov    %rax,-0x2f0(%rbp)
  addl   $0x1,-0x2fc(%rbp)
L10:
  cmpl   $0x4f,-0x2fc(%rbp)
  jle    L109
  mov    -0x2c0(%rbp),%rdx
  mov    -0x2f0(%rbp),%rax
  add    %rax,%rdx
  mov    -0x308(%rbp),%rax
  mov    %rdx,(%rax)
  mov    -0x308(%rbp),%rax
  add    $0x8,%rax
  mov    -0x2b8(%rbp),%rcx
  mov    -0x2e8(%rbp),%rdx
  add    %rcx,%rdx
  mov    %rdx,(%rax)
  mov    -0x308(%rbp),%rax
  add    $0x10,%rax
  mov    -0x2b0(%rbp),%rcx
  mov    -0x2e0(%rbp),%rdx
  add    %rcx,%rdx
  mov    %rdx,(%rax)
  mov    -0x308(%rbp),%rax
  add    $0x18,%rax
  mov    -0x2a8(%rbp),%rcx
  mov    -0x2d8(%rbp),%rdx
  add    %rcx,%rdx
  mov    %rdx,(%rax)
  mov    -0x308(%rbp),%rax
  add    $0x20,%rax
  mov    -0x2a0(%rbp),%rcx
  mov    -0x2d0(%rbp),%rdx
  add    %rcx,%rdx
  mov    %rdx,(%rax)
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L35
  call   <__stack_chk_fail@plt>
L35:
  leave
  ret
```

assistant: ```c
int g(in, i, h)
unsigned char *in;
int i;
unsigned long *h;
{
  unsigned long h0, h1, h2, h3, h4, a, b, c, d, e, temp;
  unsigned char *kp;
  unsigned long w[80];
  kp = in;
  h0 = ((kp[0] << 24) | (kp[1] << 16) | (kp[2] << 8) | (kp[3]));
  kp += 4;
  h1 = ((kp[0] << 24) | (kp[1] << 16) | (kp[2] << 8) | (kp[3]));
  kp += 4;
  h2 = ((kp[0] << 24) | (kp[1] << 16) | (kp[2] << 8) | (kp[3]));
  kp += 4;
  h3 = ((kp[0] << 24) | (kp[1] << 16) | (kp[2] << 8) | (kp[3]));
  kp += 4;
  h4 = ((kp[0] << 24) | (kp[1] << 16) | (kp[2] << 8) | (kp[3]));
  kp += 4;
  w[0] = i;
  for (i = 1; i < 16; i++)
    w[i] = 0;
  for (i = 16; i < 80; i++)
    w[i] = w[i - 3] ^ w[i - 8] ^ w[i - 14] ^ w[i - 16];
  a = h0;
  b = h1;
  c = h2;
  d = h3;
  e = h4;
  for (i = 0; i < 20; i++) {
    temp = (((a) >> 27) | ((a) << 5)) + (((b) & (c)) | ((~(b)) & (d))) + e + w[i] + 0x5a827999;
    e = d;
    d = c;
    c = (((b) >> 2) | ((b) << 30));
    b = a;
    a = temp;
  }
  for (i = 20; i < 40; i++) {
    temp = (((a) >> 27) | ((a) << 5)) + ((b) ^ (c) ^ (d)) + e + w[i] + 0x6ed9eba1;
    e = d;
    d = c;
    c = (((b) >> 2) | ((b) << 30));
    b = a;
    a = temp;
  }
  for (i = 40; i < 60; i++) {
    temp = (((a) >> 27) | ((a) << 5)) + (((b) & (c)) | ((b) & (d)) | ((c) & (d))) + e + w[i] + 0x8f1bbcdc;
    e = d;
    d = c;
    c = (((b) >> 2) | ((b) << 30));
    b = a;
    a = temp;
  }
  for (i = 60; i < 80; i++) {
    temp = (((a) >> 27) | ((a) << 5)) + ((b) ^ (c) ^ (d)) + e + w[i] + 0xca62c1d6;
    e = d;
    d = c;
    c = (((b) >> 2) | ((b) << 30));
    b = a;
    a = temp;
  }
  h[0] = h0 + a;
  h[1] = h1 + b;
  h[2] = h2 + c;
  h[3] = h3 + d;
  h[4] = h4 + e;
  return (0);
}
```