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    L112
  cmpl   $0x1,-0x54(%rbp)
  jle    L299
  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    L137
L112:
  cmpl   $0x1f,-0x64(%rbp)
  jne    L272
  cmpl   $0x1,-0x54(%rbp)
  jle    L3
  movl   $0x0,-0x3c(%rbp)
  jmp    L199
L280:
  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)
L199:
  mov    -0x54(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0x3c(%rbp)
  jl     L280
  jmp    L137
L272:
  cmpl   $0x0,-0x64(%rbp)
  jle    L149
  movl   $0x0,-0x38(%rbp)
  jmp    L286
L55:
  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)
L286:
  mov    -0x38(%rbp),%eax
  cmp    -0x64(%rbp),%eax
  jl     L55
L149:
  cmpl   $0x0,-0x64(%rbp)
  jle    L137
  mov    -0x64(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x3c(%rbp)
  jmp    L264
L249:
  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    L291
L154:
  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)
L291:
  mov    -0x34(%rbp),%eax
  cmp    -0x64(%rbp),%eax
  jl     L154
  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    L123
  mov    -0x64(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x28(%rbp)
  jmp    L194
L34:
  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     L152
  cmpl   $0x0,-0x10(%rbp)
  setg   %al
  movzbl %al,%eax
  jmp    L156
L152:
  mov    $0xffffffff,%eax
L156:
  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)
L194:
  cmpl   $0x0,-0x28(%rbp)
  js     L129
  cmpl   $0x0,-0x2c(%rbp)
  jg     L34
  jmp    L129
L123:
  cmpl   $0x0,-0x2c(%rbp)
  jns    L129
  mov    -0x64(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x24(%rbp)
  jmp    L203
L256:
  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     L168
  cmpl   $0x0,-0x18(%rbp)
  setg   %al
  movzbl %al,%eax
  neg    %eax
  jmp    L176
L168:
  mov    $0x1,%eax
L176:
  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)
L203:
  cmpl   $0x0,-0x24(%rbp)
  js     L129
  cmpl   $0x0,-0x2c(%rbp)
  js     L256
L129:
  addq   $0x4,-0x50(%rbp)
  addl   $0x1,-0x3c(%rbp)
L264:
  mov    -0x3c(%rbp),%eax
  cmp    -0x54(%rbp),%eax
  jl     L249
  jmp    L137
L299:
  nop
  jmp    L137
L3:
  nop
L137:
  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++;
    }
  }
}
```