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

```asm
<fir3>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  mov    %rdi,-0x68(%rbp)
  mov    %rsi,-0x70(%rbp)
  mov    %rdx,-0x78(%rbp)
  mov    %ecx,-0x7c(%rbp)
  mov    %r8d,-0x80(%rbp)
  mov    %r9d,-0x84(%rbp)
  movl   $0x0,-0x54(%rbp)
  jmp    L14
L6:
  mov    -0x54(%rbp),%eax
  cltq
  lea    (%rax,%rax,1),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  movswl %ax,%edx
  mov    -0x70(%rbp),%rax
  movzwl (%rax),%eax
  cwtl
  mov    %edx,%ecx
  imul   %eax,%ecx
  mov    -0x54(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    (%rax,%rax,1),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  movswl %ax,%edx
  mov    -0x70(%rbp),%rax
  add    $0x2,%rax
  movzwl (%rax),%eax
  cwtl
  imul   %edx,%eax
  add    %ecx,%eax
  mov    %eax,-0x50(%rbp)
  mov    -0x54(%rbp),%eax
  cltq
  add    $0x2,%rax
  lea    (%rax,%rax,1),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  movswl %ax,%edx
  mov    -0x70(%rbp),%rax
  add    $0x4,%rax
  movzwl (%rax),%eax
  cwtl
  mov    %edx,%ecx
  imul   %eax,%ecx
  mov    -0x54(%rbp),%eax
  cltq
  add    $0x3,%rax
  lea    (%rax,%rax,1),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  movswl %ax,%edx
  mov    -0x70(%rbp),%rax
  add    $0x6,%rax
  movzwl (%rax),%eax
  cwtl
  imul   %edx,%eax
  add    %ecx,%eax
  mov    %eax,-0x4c(%rbp)
  mov    -0x54(%rbp),%eax
  cltq
  add    $0x4,%rax
  lea    (%rax,%rax,1),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  movswl %ax,%edx
  mov    -0x70(%rbp),%rax
  add    $0x8,%rax
  movzwl (%rax),%eax
  cwtl
  mov    %edx,%ecx
  imul   %eax,%ecx
  mov    -0x54(%rbp),%eax
  cltq
  add    $0x5,%rax
  lea    (%rax,%rax,1),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  movswl %ax,%edx
  mov    -0x70(%rbp),%rax
  add    $0xa,%rax
  movzwl (%rax),%eax
  cwtl
  imul   %edx,%eax
  add    %ecx,%eax
  mov    %eax,-0x48(%rbp)
  mov    -0x54(%rbp),%eax
  cltq
  add    $0x6,%rax
  lea    (%rax,%rax,1),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  movswl %ax,%edx
  mov    -0x70(%rbp),%rax
  add    $0xc,%rax
  movzwl (%rax),%eax
  cwtl
  mov    %edx,%ecx
  imul   %eax,%ecx
  mov    -0x54(%rbp),%eax
  cltq
  add    $0x7,%rax
  lea    (%rax,%rax,1),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  movswl %ax,%edx
  mov    -0x70(%rbp),%rax
  add    $0xe,%rax
  movzwl (%rax),%eax
  cwtl
  imul   %edx,%eax
  add    %ecx,%eax
  mov    %eax,-0x44(%rbp)
  mov    -0x54(%rbp),%eax
  cltq
  add    $0x8,%rax
  lea    (%rax,%rax,1),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  movswl %ax,%edx
  mov    -0x70(%rbp),%rax
  add    $0x10,%rax
  movzwl (%rax),%eax
  cwtl
  mov    %edx,%ecx
  imul   %eax,%ecx
  mov    -0x54(%rbp),%eax
  cltq
  add    $0x9,%rax
  lea    (%rax,%rax,1),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  movswl %ax,%edx
  mov    -0x70(%rbp),%rax
  add    $0x12,%rax
  movzwl (%rax),%eax
  cwtl
  imul   %edx,%eax
  add    %ecx,%eax
  mov    %eax,-0x40(%rbp)
  mov    -0x54(%rbp),%eax
  cltq
  add    $0xa,%rax
  lea    (%rax,%rax,1),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  movswl %ax,%edx
  mov    -0x70(%rbp),%rax
  add    $0x14,%rax
  movzwl (%rax),%eax
  cwtl
  mov    %edx,%ecx
  imul   %eax,%ecx
  mov    -0x54(%rbp),%eax
  cltq
  add    $0xb,%rax
  lea    (%rax,%rax,1),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  movswl %ax,%edx
  mov    -0x70(%rbp),%rax
  add    $0x16,%rax
  movzwl (%rax),%eax
  cwtl
  imul   %edx,%eax
  add    %ecx,%eax
  mov    %eax,-0x3c(%rbp)
  mov    -0x54(%rbp),%eax
  cltq
  add    $0xc,%rax
  lea    (%rax,%rax,1),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  movswl %ax,%edx
  mov    -0x70(%rbp),%rax
  add    $0x18,%rax
  movzwl (%rax),%eax
  cwtl
  mov    %edx,%ecx
  imul   %eax,%ecx
  mov    -0x54(%rbp),%eax
  cltq
  add    $0xd,%rax
  lea    (%rax,%rax,1),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  movswl %ax,%edx
  mov    -0x70(%rbp),%rax
  add    $0x1a,%rax
  movzwl (%rax),%eax
  cwtl
  imul   %edx,%eax
  add    %ecx,%eax
  mov    %eax,-0x38(%rbp)
  mov    -0x54(%rbp),%eax
  cltq
  add    $0xe,%rax
  lea    (%rax,%rax,1),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  movswl %ax,%edx
  mov    -0x70(%rbp),%rax
  add    $0x1c,%rax
  movzwl (%rax),%eax
  cwtl
  mov    %edx,%ecx
  imul   %eax,%ecx
  mov    -0x54(%rbp),%eax
  cltq
  add    $0xf,%rax
  lea    (%rax,%rax,1),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  movswl %ax,%edx
  mov    -0x70(%rbp),%rax
  add    $0x1e,%rax
  movzwl (%rax),%eax
  cwtl
  imul   %edx,%eax
  add    %ecx,%eax
  mov    %eax,-0x34(%rbp)
  mov    -0x54(%rbp),%eax
  cltq
  add    $0x10,%rax
  lea    (%rax,%rax,1),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  movswl %ax,%edx
  mov    -0x70(%rbp),%rax
  add    $0x20,%rax
  movzwl (%rax),%eax
  cwtl
  mov    %edx,%ecx
  imul   %eax,%ecx
  mov    -0x54(%rbp),%eax
  cltq
  add    $0x11,%rax
  lea    (%rax,%rax,1),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  movswl %ax,%edx
  mov    -0x70(%rbp),%rax
  add    $0x22,%rax
  movzwl (%rax),%eax
  cwtl
  imul   %edx,%eax
  add    %ecx,%eax
  mov    %eax,-0x30(%rbp)
  mov    -0x54(%rbp),%eax
  cltq
  add    $0x12,%rax
  lea    (%rax,%rax,1),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  movswl %ax,%edx
  mov    -0x70(%rbp),%rax
  add    $0x24,%rax
  movzwl (%rax),%eax
  cwtl
  mov    %edx,%ecx
  imul   %eax,%ecx
  mov    -0x54(%rbp),%eax
  cltq
  add    $0x13,%rax
  lea    (%rax,%rax,1),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  movswl %ax,%edx
  mov    -0x70(%rbp),%rax
  add    $0x26,%rax
  movzwl (%rax),%eax
  cwtl
  imul   %edx,%eax
  add    %ecx,%eax
  mov    %eax,-0x2c(%rbp)
  mov    -0x54(%rbp),%eax
  cltq
  add    $0x14,%rax
  lea    (%rax,%rax,1),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  movswl %ax,%edx
  mov    -0x70(%rbp),%rax
  add    $0x28,%rax
  movzwl (%rax),%eax
  cwtl
  mov    %edx,%ecx
  imul   %eax,%ecx
  mov    -0x54(%rbp),%eax
  cltq
  add    $0x15,%rax
  lea    (%rax,%rax,1),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  movswl %ax,%edx
  mov    -0x70(%rbp),%rax
  add    $0x2a,%rax
  movzwl (%rax),%eax
  cwtl
  imul   %edx,%eax
  add    %ecx,%eax
  mov    %eax,-0x28(%rbp)
  mov    -0x54(%rbp),%eax
  cltq
  add    $0x16,%rax
  lea    (%rax,%rax,1),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  movswl %ax,%edx
  mov    -0x70(%rbp),%rax
  add    $0x2c,%rax
  movzwl (%rax),%eax
  cwtl
  mov    %edx,%ecx
  imul   %eax,%ecx
  mov    -0x54(%rbp),%eax
  cltq
  add    $0x17,%rax
  lea    (%rax,%rax,1),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  movswl %ax,%edx
  mov    -0x70(%rbp),%rax
  add    $0x2e,%rax
  movzwl (%rax),%eax
  cwtl
  imul   %edx,%eax
  add    %ecx,%eax
  mov    %eax,-0x24(%rbp)
  mov    -0x54(%rbp),%eax
  cltq
  add    $0x18,%rax
  lea    (%rax,%rax,1),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  movswl %ax,%edx
  mov    -0x70(%rbp),%rax
  add    $0x30,%rax
  movzwl (%rax),%eax
  cwtl
  mov    %edx,%ecx
  imul   %eax,%ecx
  mov    -0x54(%rbp),%eax
  cltq
  add    $0x19,%rax
  lea    (%rax,%rax,1),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  movswl %ax,%edx
  mov    -0x70(%rbp),%rax
  add    $0x32,%rax
  movzwl (%rax),%eax
  cwtl
  imul   %edx,%eax
  add    %ecx,%eax
  mov    %eax,-0x20(%rbp)
  mov    -0x54(%rbp),%eax
  cltq
  add    $0x1a,%rax
  lea    (%rax,%rax,1),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  movswl %ax,%edx
  mov    -0x70(%rbp),%rax
  add    $0x34,%rax
  movzwl (%rax),%eax
  cwtl
  mov    %edx,%ecx
  imul   %eax,%ecx
  mov    -0x54(%rbp),%eax
  cltq
  add    $0x1b,%rax
  lea    (%rax,%rax,1),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  movswl %ax,%edx
  mov    -0x70(%rbp),%rax
  add    $0x36,%rax
  movzwl (%rax),%eax
  cwtl
  imul   %edx,%eax
  add    %ecx,%eax
  mov    %eax,-0x1c(%rbp)
  mov    -0x54(%rbp),%eax
  cltq
  add    $0x1c,%rax
  lea    (%rax,%rax,1),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  movswl %ax,%edx
  mov    -0x70(%rbp),%rax
  add    $0x38,%rax
  movzwl (%rax),%eax
  cwtl
  mov    %edx,%ecx
  imul   %eax,%ecx
  mov    -0x54(%rbp),%eax
  cltq
  add    $0x1d,%rax
  lea    (%rax,%rax,1),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  movswl %ax,%edx
  mov    -0x70(%rbp),%rax
  add    $0x3a,%rax
  movzwl (%rax),%eax
  cwtl
  imul   %edx,%eax
  add    %ecx,%eax
  mov    %eax,-0x18(%rbp)
  mov    -0x54(%rbp),%eax
  cltq
  add    $0x1e,%rax
  lea    (%rax,%rax,1),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  movswl %ax,%edx
  mov    -0x70(%rbp),%rax
  add    $0x3c,%rax
  movzwl (%rax),%eax
  cwtl
  mov    %edx,%ecx
  imul   %eax,%ecx
  mov    -0x54(%rbp),%eax
  cltq
  add    $0x1f,%rax
  lea    (%rax,%rax,1),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  movswl %ax,%edx
  mov    -0x70(%rbp),%rax
  add    $0x3e,%rax
  movzwl (%rax),%eax
  cwtl
  imul   %edx,%eax
  add    %ecx,%eax
  mov    %eax,-0x14(%rbp)
  mov    -0x50(%rbp),%edx
  mov    -0x4c(%rbp),%eax
  add    %eax,%edx
  mov    -0x48(%rbp),%eax
  add    %eax,%edx
  mov    -0x44(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x10(%rbp)
  mov    -0x40(%rbp),%edx
  mov    -0x3c(%rbp),%eax
  add    %eax,%edx
  mov    -0x38(%rbp),%eax
  add    %eax,%edx
  mov    -0x34(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0xc(%rbp)
  mov    -0x30(%rbp),%edx
  mov    -0x2c(%rbp),%eax
  add    %eax,%edx
  mov    -0x28(%rbp),%eax
  add    %eax,%edx
  mov    -0x24(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x8(%rbp)
  mov    -0x20(%rbp),%edx
  mov    -0x1c(%rbp),%eax
  add    %eax,%edx
  mov    -0x18(%rbp),%eax
  add    %eax,%edx
  mov    -0x14(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x10(%rbp),%edx
  mov    -0xc(%rbp),%eax
  add    %eax,%edx
  mov    -0x8(%rbp),%eax
  add    %eax,%edx
  mov    -0x4(%rbp),%eax
  add    %eax,%edx
  mov    -0x84(%rbp),%eax
  mov    %eax,%ecx
  sar    %cl,%edx
  mov    -0x54(%rbp),%eax
  cltq
  lea    (%rax,%rax,1),%rcx
  mov    -0x78(%rbp),%rax
  add    %rcx,%rax
  mov    %dx,(%rax)
  addl   $0x1,-0x54(%rbp)
L14:
  mov    -0x54(%rbp),%eax
  cmp    -0x80(%rbp),%eax
  jl     L6
  nop
  nop
  leave
  ret
```

assistant: ```c
void fir3(const short x[], const short h[], short y[], int n, int m, int s) {
  int j;
  int tmp0, tmp1, tmp2, tmp3, tmp4, tmp5, tmp6, tmp7, tmp8, tmp9;
  int tmp10, tmp11, tmp12, tmp13, tmp14, tmp15, tmp16, tmp17, tmp18, tmp19;
  for (j = 0; j < m; j++) {
    tmp0 = x[j] * h[0] + x[j + 1] * h[1];
    tmp1 = x[j + 2] * h[2] + x[j + 3] * h[3];
    tmp2 = x[j + 4] * h[4] + x[j + 5] * h[5];
    tmp3 = x[j + 6] * h[6] + x[j + 7] * h[7];
    tmp4 = x[j + 8] * h[8] + x[j + 9] * h[9];
    tmp5 = x[j + 10] * h[10] + x[j + 11] * h[11];
    tmp6 = x[j + 12] * h[12] + x[j + 13] * h[13];
    tmp7 = x[j + 14] * h[14] + x[j + 15] * h[15];
    tmp8 = x[j + 16] * h[16] + x[j + 17] * h[17];
    tmp9 = x[j + 18] * h[18] + x[j + 19] * h[19];
    tmp10 = x[j + 20] * h[20] + x[j + 21] * h[21];
    tmp11 = x[j + 22] * h[22] + x[j + 23] * h[23];
    tmp12 = x[j + 24] * h[24] + x[j + 25] * h[25];
    tmp13 = x[j + 26] * h[26] + x[j + 27] * h[27];
    tmp14 = x[j + 28] * h[28] + x[j + 29] * h[29];
    tmp15 = x[j + 30] * h[30] + x[j + 31] * h[31];
    tmp16 = tmp0 + tmp1 + tmp2 + tmp3;
    tmp17 = tmp4 + tmp5 + tmp6 + tmp7;
    tmp18 = tmp8 + tmp9 + tmp10 + tmp11;
    tmp19 = tmp12 + tmp13 + tmp14 + tmp15;
    y[j] = (tmp16 + tmp17 + tmp18 + tmp19) >> s;
  }
}
```