user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<predictor_decompress_fir_adapt>:
  endbr64
  mov    %rdi,%rax
  push   %r15
  mov    %rsi,%r10
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    (%rax),%esi
  mov    0x38(%rsp),%edi
  mov    %esi,(%r10)
  test   %r9d,%r9d
  jne    L22
  cmp    $0x1,%edx
  jg     L232
L7:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  cs nopw 0x0(%rax,%rax,1)
L22:
  mov    %ecx,%r11d
  cmp    $0x1f,%r9d
  je     L221
  test   %r9d,%r9d
  jle    L7
  mov    $0x20,%r12d
  lea    0x1(%r9),%ebp
  lea    -0x1(%r9),%ebx
  mov    $0x1,%r11d
  sub    %ecx,%r12d
  mov    %rbp,%r13
  mov    %r12d,%ecx
  nop
L248:
  add    (%rax,%r11,4),%esi
  shl    %cl,%esi
  sar    %cl,%esi
  mov    %esi,(%r10,%r11,4)
  add    $0x1,%r11
  cmp    %r11,%rbp
  jne    L248
  mov    %ecx,%r12d
  cmp    %edx,%r13d
  jge    L7
  lea    -0x1(%rdi),%ecx
  mov    $0x1,%esi
  sub    $0x2,%edx
  mov    %r12d,-0x14(%rsp)
  shl    %cl,%esi
  movslq %r9d,%rcx
  sub    %r9d,%edx
  lea    0x4(,%rcx,4),%rcx
  mov    %esi,-0x18(%rsp)
  lea    0x4(%r10),%rsi
  lea    (%rax,%rcx,1),%r15
  lea    0x8(%r10,%rdx,4),%rax
  mov    %rcx,-0x28(%rsp)
  mov    %rax,-0x20(%rsp)
  mov    %r9d,%eax
  lea    -0x10(%r10,%rcx,1),%r14
  mov    (%r15),%edx
  shr    $0x2,%eax
  mov    -0x4(%rsi),%r10d
  lea    -0x4(%rsi),%r12
  sub    $0x1,%eax
  shl    $0x4,%rax
  lea    0x10(%r8,%rax,1),%r11
  mov    %r9d,%eax
  and    $0xfffffffc,%eax
  mov    %eax,-0x10(%rsp)
  lea    -0x2(%r9),%eax
  mov    %eax,-0xc(%rsp)
  cmp    $0x2,%ebx
  jbe    L266
  nopl   (%rax)
L130:
  movd   %r10d,%xmm6
  mov    %r14,%rcx
  pxor   %xmm3,%xmm3
  mov    %r8,%rax
  pshufd $0x0,%xmm6,%xmm4
  nopl   0x0(%rax)
L112:
  movdqu (%rcx),%xmm5
  movdqu (%rax),%xmm1
  add    $0x10,%rax
  sub    $0x10,%rcx
  movdqu -0x10(%rax),%xmm2
  pshufd $0x1b,%xmm5,%xmm0
  psubd  %xmm4,%xmm0
  psrlq  $0x20,%xmm2
  pmuludq %xmm0,%xmm1
  psrlq  $0x20,%xmm0
  pmuludq %xmm2,%xmm0
  pshufd $0x8,%xmm1,%xmm1
  pshufd $0x8,%xmm0,%xmm0
  punpckldq %xmm0,%xmm1
  paddd  %xmm1,%xmm3
  cmp    %r11,%rax
  jne    L112
  movdqa %xmm3,%xmm0
  mov    -0x10(%rsp),%ecx
  psrldq $0x8,%xmm0
  paddd  %xmm0,%xmm3
  movdqa %xmm3,%xmm0
  psrldq $0x4,%xmm0
  paddd  %xmm0,%xmm3
  movd   %xmm3,%eax
  cmp    %ecx,%r9d
  je     L212
L63:
  movslq %ecx,%r13
  lea    0x0(,%r13,4),%rbp
  mov    %rbp,-0x30(%rsp)
  mov    %r9d,%ebp
  sub    %ecx,%ebp
  movslq %ebp,%rbp
  mov    (%r12,%rbp,4),%ebp
  sub    %r10d,%ebp
  imul   (%r8,%r13,4),%ebp
  lea    0x1(%rcx),%r13d
  add    %ebp,%eax
  cmp    %r9d,%r13d
  jge    L212
  mov    %r9d,%ebp
  add    $0x2,%ecx
  sub    %r13d,%ebp
  mov    -0x30(%rsp),%r13
  movslq %ebp,%rbp
  mov    (%r12,%rbp,4),%ebp
  sub    %r10d,%ebp
  imul   0x4(%r8,%r13,1),%ebp
  add    %ebp,%eax
  cmp    %r9d,%ecx
  jge    L212
  mov    %r9d,%ebp
  sub    %ecx,%ebp
  movslq %ebp,%rbp
  mov    (%r12,%rbp,4),%ecx
  sub    %r10d,%ecx
  imul   0x8(%r8,%r13,1),%ecx
  add    %ecx,%eax
L212:
  mov    %edi,%ecx
  add    -0x18(%rsp),%eax
  sar    %cl,%eax
  add    %r10d,%eax
  mov    -0x14(%rsp),%r10d
  add    %edx,%eax
  mov    %r10d,%ecx
  shl    %cl,%eax
  sar    %cl,%eax
  mov    -0x28(%rsp),%rcx
  mov    %eax,-0x4(%rsi,%rcx,1)
  test   %edx,%edx
  jg     L245
  jne    L249
L52:
  add    $0x4,%rsi
  add    $0x4,%r15
  add    $0x4,%r14
  cmp    %rsi,-0x20(%rsp)
  je     L7
  mov    (%r15),%edx
  mov    -0x4(%rsi),%r10d
  lea    -0x4(%rsi),%r12
  cmp    $0x2,%ebx
  ja     L130
L266:
  xor    %eax,%eax
  xor    %ecx,%ecx
  jmp    L63
  nopl   (%rax)
L232:
  pop    %rbx
  lea    -0x4(,%rdx,4),%edx
  lea    0x4(%rax),%rsi
  pop    %rbp
  lea    0x4(%r10),%rdi
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1050 <memcpy@plt>
  xchg   %ax,%ax
L221:
  cmp    $0x1,%edx
  jle    L7
  mov    $0x20,%ecx
  movslq %edx,%rdx
  mov    $0x1,%edi
  sub    %r11d,%ecx
  nopl   0x0(%rax)
L83:
  add    (%rax,%rdi,4),%esi
  shl    %cl,%esi
  sar    %cl,%esi
  mov    %esi,(%r10,%rdi,4)
  add    $0x1,%rdi
  cmp    %rdx,%rdi
  jne    L83
  jmp    L7
  nopl   0x0(%rax)
L245:
  movslq -0xc(%rsp),%rax
  mov    %rsi,%rbp
  nopl   0x0(%rax,%rax,1)
L253:
  mov    -0x4(%rsi),%r13d
  mov    0x0(%rbp),%ecx
  mov    %ebx,%r12d
  sub    %eax,%r12d
  mov    %r13d,%r10d
  sub    %ecx,%r10d
  test   %r10d,%r10d
  js     L262
  setg   %cl
  movzbl %cl,%ecx
  sub    %ecx,0x4(%r8,%rax,4)
  xor    %ecx,%ecx
  test   %r10d,%r10d
  cmovs  %ecx,%r10d
  mov    %edi,%ecx
  sar    %cl,%r10d
  mov    %eax,%ecx
  imul   %r12d,%r10d
  not    %ecx
  shr    $0x1f,%ecx
  sub    %r10d,%edx
  test   %edx,%edx
  setg   %r10b
  sub    $0x1,%rax
  add    $0x4,%rbp
  test   %cl,%r10b
  jne    L253
  jmp    L52
  nopw   0x0(%rax,%rax,1)
L262:
  sub    %r13d,%ecx
  addl   $0x1,0x4(%r8,%rax,4)
  mov    %ecx,%r10d
  mov    %edi,%ecx
  sar    %cl,%r10d
  mov    %r10d,%ecx
  imul   %r12d,%ecx
  sub    %ecx,%edx
  mov    %eax,%ecx
  test   %edx,%edx
  not    %ecx
  setg   %r10b
  shr    $0x1f,%ecx
  sub    $0x1,%rax
  add    $0x4,%rbp
  test   %cl,%r10b
  jne    L253
  jmp    L52
  nopl   (%rax)
L249:
  movslq -0xc(%rsp),%r10
  mov    %rsi,%rbp
  mov    %edi,%ecx
  nopw   0x0(%rax,%rax,1)
L201:
  mov    -0x4(%rsi),%eax
  mov    %ebx,%r12d
  sub    0x0(%rbp),%eax
  mov    $0x1,%edi
  sub    %r10d,%r12d
  test   %eax,%eax
  js     L45
  setg   %dil
  movzbl %dil,%edi
  neg    %edi
  imul   %edi,%eax
L45:
  sar    %cl,%eax
  sub    %edi,0x4(%r8,%r10,4)
  add    $0x4,%rbp
  imul   %r12d,%eax
  sub    %eax,%edx
  mov    %edx,%eax
  not    %eax
  or     %r10d,%eax
  sub    $0x1,%r10
  test   %eax,%eax
  jns    L201
  mov    %ecx,%edi
  jmp    L52
```

assistant: ```c
void predictor_decompress_fir_adapt(int32_t *error_buffer, int32_t *buffer_out, int output_size, int readsamplesize, int16_t *predictor_coef_table, int predictor_coef_num, int predictor_quantitization) {
  int i;
  *buffer_out = *error_buffer;
  if (!predictor_coef_num) {
    if (output_size <= 1)
      return;
    memcpy(buffer_out + 1, error_buffer + 1, (output_size - 1) * 4);
    return;
  }
  if (predictor_coef_num == 0x1f) {
    if (output_size <= 1)
      return;
    for (i = 0; i < output_size - 1; i++) {
      int32_t prev_value;
      int32_t error_value;
      prev_value = buffer_out[i];
      error_value = error_buffer[i + 1];
      buffer_out[i + 1] = (((prev_value + error_value) << (32 - readsamplesize)) >> (32 - readsamplesize));
    }
    return;
  }
  if (predictor_coef_num > 0) {
    int i;
    for (i = 0; i < predictor_coef_num; i++) {
      int32_t val;
      val = buffer_out[i] + error_buffer[i + 1];
      val = ((val << (32 - readsamplesize)) >> (32 - readsamplesize));
      buffer_out[i + 1] = val;
    }
  }
  if (predictor_coef_num > 0) {
    for (i = predictor_coef_num + 1; i < output_size; i++) {
      int j;
      int sum = 0;
      int outval;
      int error_val = error_buffer[i];
      for (j = 0; j < predictor_coef_num; j++) {
        sum += (buffer_out[predictor_coef_num - j] - buffer_out[0]) * predictor_coef_table[j];
      }
      outval = (1 << (predictor_quantitization - 1)) + sum;
      outval = outval >> predictor_quantitization;
      outval = outval + buffer_out[0] + error_val;
      outval = ((outval << (32 - readsamplesize)) >> (32 - readsamplesize));
      buffer_out[predictor_coef_num + 1] = outval;
      if (error_val > 0) {
        int predictor_num = predictor_coef_num - 1;
        while (predictor_num >= 0 && error_val > 0) {
          int val = buffer_out[0] - buffer_out[predictor_coef_num - predictor_num];
          int sign = ((val < 0) ? (-1) : ((val > 0) ? (1) : (0)));
          predictor_coef_table[predictor_num] -= sign;
          val *= sign;
          error_val -= ((val >> predictor_quantitization) * (predictor_coef_num - predictor_num));
          predictor_num--;
        }
      } else if (error_val < 0) {
        int predictor_num = predictor_coef_num - 1;
        while (predictor_num >= 0 && error_val < 0) {
          int val = buffer_out[0] - buffer_out[predictor_coef_num - predictor_num];
          int sign = -((val < 0) ? (-1) : ((val > 0) ? (1) : (0)));
          predictor_coef_table[predictor_num] -= sign;
          val *= sign;
          error_val -= ((val >> predictor_quantitization) * (predictor_coef_num - predictor_num));
          predictor_num--;
        }
      }
      buffer_out++;
    }
  }
}
```