user: 请将以下的汇编代码转换成C语言代码:

```asm
<predictor_decompress_fir_adapt>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x70,%rsp
  mov    %rdi,-0x48(%rbp)
  mov    %rsi,-0x50(%rbp)
  mov    %edx,-0x54(%rbp)
  mov    %ecx,-0x58(%rbp)
  mov    %r8,-0x60(%rbp)
  mov    %r9d,-0x64(%rbp)
  mov    -0x48(%rbp),%rax
  mov    (%rax),%edx
  mov    -0x50(%rbp),%rax
  mov    %edx,(%rax)
  cmpl   $0x0,-0x64(%rbp)
  jne    L19
  cmpl   $0x1,-0x54(%rbp)
  jle    L137
  mov    -0x54(%rbp),%eax
  sub    $0x1,%eax
  lea    0x0(,%rax,4),%edx
  mov    -0x48(%rbp),%rax
  lea    0x4(%rax),%rcx
  mov    -0x50(%rbp),%rax
  add    $0x4,%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  jmp    L254
L19:
  cmpl   $0x1f,-0x64(%rbp)
  jne    L157
  cmpl   $0x1,-0x54(%rbp)
  jle    L166
  movl   $0x0,-0x3c(%rbp)
  jmp    L169
L210:
  mov    -0x3c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x8(%rbp)
  mov    -0x3c(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x8(%rbp),%edx
  mov    -0x4(%rbp),%eax
  add    %eax,%edx
  mov    $0x20,%eax
  sub    -0x58(%rbp),%eax
  mov    %edx,%esi
  mov    %eax,%ecx
  shl    %cl,%esi
  mov    $0x20,%eax
  sub    -0x58(%rbp),%eax
  mov    -0x3c(%rbp),%edx
  movslq %edx,%rdx
  add    $0x1,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x50(%rbp),%rdx
  add    %rcx,%rdx
  mov    %eax,%ecx
  sar    %cl,%esi
  mov    %esi,%eax
  mov    %eax,(%rdx)
  addl   $0x1,-0x3c(%rbp)
L169:
  mov    -0x54(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0x3c(%rbp)
  jl     L210
  jmp    L254
L157:
  cmpl   $0x0,-0x64(%rbp)
  jle    L273
  movl   $0x0,-0x38(%rbp)
  jmp    L125
L11:
  mov    -0x38(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x38(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rcx
  mov    -0x48(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  add    %edx,%eax
  mov    %eax,-0x20(%rbp)
  mov    $0x20,%eax
  sub    -0x58(%rbp),%eax
  mov    -0x20(%rbp),%edx
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    $0x20,%eax
  sub    -0x58(%rbp),%eax
  mov    %eax,%ecx
  sar    %cl,%edx
  mov    %edx,%eax
  mov    %eax,-0x20(%rbp)
  mov    -0x38(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x50(%rbp),%rax
  add    %rax,%rdx
  mov    -0x20(%rbp),%eax
  mov    %eax,(%rdx)
  addl   $0x1,-0x38(%rbp)
L125:
  mov    -0x38(%rbp),%eax
  cmp    -0x64(%rbp),%eax
  jl     L11
L273:
  cmpl   $0x0,-0x64(%rbp)
  jle    L254
  mov    -0x64(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x3c(%rbp)
  jmp    L10
L20:
  movl   $0x0,-0x30(%rbp)
  mov    -0x3c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x2c(%rbp)
  movl   $0x0,-0x34(%rbp)
  jmp    L88
L236:
  mov    -0x64(%rbp),%eax
  sub    -0x34(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x50(%rbp),%rax
  mov    (%rax),%eax
  sub    %eax,%edx
  mov    -0x34(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x60(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  imul   %edx,%eax
  add    %eax,-0x30(%rbp)
  addl   $0x1,-0x34(%rbp)
L88:
  mov    -0x34(%rbp),%eax
  cmp    -0x64(%rbp),%eax
  jl     L236
  mov    0x10(%rbp),%eax
  sub    $0x1,%eax
  mov    $0x1,%edx
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    -0x30(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x1c(%rbp)
  mov    0x10(%rbp),%eax
  mov    %eax,%ecx
  sarl   %cl,-0x1c(%rbp)
  mov    -0x50(%rbp),%rax
  mov    (%rax),%edx
  mov    -0x1c(%rbp),%eax
  add    %eax,%edx
  mov    -0x2c(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x1c(%rbp)
  mov    $0x20,%eax
  sub    -0x58(%rbp),%eax
  mov    -0x1c(%rbp),%edx
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    $0x20,%eax
  sub    -0x58(%rbp),%eax
  mov    %eax,%ecx
  sar    %cl,%edx
  mov    %edx,%eax
  mov    %eax,-0x1c(%rbp)
  mov    -0x64(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x50(%rbp),%rax
  add    %rax,%rdx
  mov    -0x1c(%rbp),%eax
  mov    %eax,(%rdx)
  cmpl   $0x0,-0x2c(%rbp)
  jle    L271
  mov    -0x64(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x28(%rbp)
  jmp    L17
L216:
  mov    -0x50(%rbp),%rax
  mov    (%rax),%edx
  mov    -0x64(%rbp),%eax
  sub    -0x28(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x50(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,-0x10(%rbp)
  cmpl   $0x0,-0x10(%rbp)
  js     L227
  cmpl   $0x0,-0x10(%rbp)
  setg   %al
  movzbl %al,%eax
  jmp    L55
L227:
  mov    $0xffffffff,%eax
L55:
  mov    %eax,-0xc(%rbp)
  mov    -0x28(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x60(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    -0x28(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x60(%rbp),%rdx
  add    %rcx,%rdx
  sub    -0xc(%rbp),%eax
  mov    %eax,(%rdx)
  mov    -0x10(%rbp),%eax
  imul   -0xc(%rbp),%eax
  mov    %eax,-0x10(%rbp)
  mov    0x10(%rbp),%eax
  mov    -0x10(%rbp),%edx
  mov    %eax,%ecx
  sar    %cl,%edx
  mov    -0x64(%rbp),%eax
  sub    -0x28(%rbp),%eax
  imul   %edx,%eax
  sub    %eax,-0x2c(%rbp)
  subl   $0x1,-0x28(%rbp)
L17:
  cmpl   $0x0,-0x28(%rbp)
  js     L146
  cmpl   $0x0,-0x2c(%rbp)
  jg     L216
  jmp    L146
L271:
  cmpl   $0x0,-0x2c(%rbp)
  jns    L146
  mov    -0x64(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x24(%rbp)
  jmp    L244
L7:
  mov    -0x50(%rbp),%rax
  mov    (%rax),%edx
  mov    -0x64(%rbp),%eax
  sub    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x50(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,-0x18(%rbp)
  cmpl   $0x0,-0x18(%rbp)
  js     L164
  cmpl   $0x0,-0x18(%rbp)
  setg   %al
  movzbl %al,%eax
  neg    %eax
  jmp    L105
L164:
  mov    $0x1,%eax
L105:
  mov    %eax,-0x14(%rbp)
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x60(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    -0x24(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x60(%rbp),%rdx
  add    %rcx,%rdx
  sub    -0x14(%rbp),%eax
  mov    %eax,(%rdx)
  mov    -0x18(%rbp),%eax
  imul   -0x14(%rbp),%eax
  mov    %eax,-0x18(%rbp)
  mov    0x10(%rbp),%eax
  mov    -0x18(%rbp),%edx
  mov    %eax,%ecx
  sar    %cl,%edx
  mov    -0x64(%rbp),%eax
  sub    -0x24(%rbp),%eax
  imul   %edx,%eax
  sub    %eax,-0x2c(%rbp)
  subl   $0x1,-0x24(%rbp)
L244:
  cmpl   $0x0,-0x24(%rbp)
  js     L146
  cmpl   $0x0,-0x2c(%rbp)
  js     L7
L146:
  addq   $0x4,-0x50(%rbp)
  addl   $0x1,-0x3c(%rbp)
L10:
  mov    -0x3c(%rbp),%eax
  cmp    -0x54(%rbp),%eax
  jl     L20
  jmp    L254
L137:
  nop
  jmp    L254
L166:
  nop
L254:
  leave
  ret
```

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++;
    }
  }
}
```