user: What would the C source look like for the assembly code provided here?

```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    L276
  cmpl   $0x1,-0x54(%rbp)
  jle    L231
  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    L186
L276:
  cmpl   $0x1f,-0x64(%rbp)
  jne    L21
  cmpl   $0x1,-0x54(%rbp)
  jle    L57
  movl   $0x0,-0x3c(%rbp)
  jmp    L270
L144:
  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)
L270:
  mov    -0x54(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0x3c(%rbp)
  jl     L144
  jmp    L186
L21:
  cmpl   $0x0,-0x64(%rbp)
  jle    L109
  movl   $0x0,-0x38(%rbp)
  jmp    L40
L212:
  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)
L40:
  mov    -0x38(%rbp),%eax
  cmp    -0x64(%rbp),%eax
  jl     L212
L109:
  cmpl   $0x0,-0x64(%rbp)
  jle    L186
  mov    -0x64(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x3c(%rbp)
  jmp    L180
L22:
  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    L91
L38:
  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)
L91:
  mov    -0x34(%rbp),%eax
  cmp    -0x64(%rbp),%eax
  jl     L38
  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    L239
  mov    -0x64(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x28(%rbp)
  jmp    L89
L275:
  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     L188
  cmpl   $0x0,-0x10(%rbp)
  setg   %al
  movzbl %al,%eax
  jmp    L281
L188:
  mov    $0xffffffff,%eax
L281:
  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)
L89:
  cmpl   $0x0,-0x28(%rbp)
  js     L39
  cmpl   $0x0,-0x2c(%rbp)
  jg     L275
  jmp    L39
L239:
  cmpl   $0x0,-0x2c(%rbp)
  jns    L39
  mov    -0x64(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x24(%rbp)
  jmp    L148
L142:
  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     L119
  cmpl   $0x0,-0x18(%rbp)
  setg   %al
  movzbl %al,%eax
  neg    %eax
  jmp    L145
L119:
  mov    $0x1,%eax
L145:
  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)
L148:
  cmpl   $0x0,-0x24(%rbp)
  js     L39
  cmpl   $0x0,-0x2c(%rbp)
  js     L142
L39:
  addq   $0x4,-0x50(%rbp)
  addl   $0x1,-0x3c(%rbp)
L180:
  mov    -0x3c(%rbp),%eax
  cmp    -0x54(%rbp),%eax
  jl     L22
  jmp    L186
L231:
  nop
  jmp    L186
L57:
  nop
L186:
  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++;
    }
  }
}
```