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

```asm
<SKP_Silk_LPC_inverse_pred_gain>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xa8,%rsp
  mov    %rdi,0x8(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x98(%rsp)
  xor    %eax,%eax
  mov    %edx,%eax
  and    $0x1,%eax
  shl    $0x6,%rax
  lea    0x10(%rsp,%rax,1),%r12
  test   %edx,%edx
  jle    L20
  mov    %edx,%edi
  mov    $0x0,%eax
L40:
  movswl (%rsi,%rax,2),%ecx
  shl    $0x4,%ecx
  mov    %ecx,(%r12,%rax,4)
  add    $0x1,%rax
  cmp    %rdi,%rax
  jne    L40
L20:
  mov    0x8(%rsp),%rax
  movl   $0x40000000,(%rax)
  lea    -0x1(%rdx),%r14d
  test   %r14d,%r14d
  jle    L118
  movslq %r14d,%r15
  shl    $0x2,%r15
  jmp    L54
L104:
  sub    $0x4,%r15
  sub    $0x1,%r14d
  je     L93
  mov    %r13,%r12
L54:
  lea    (%r12,%r15,1),%rbx
  mov    (%rbx),%ebp
  lea    0xfff0(%rbp),%eax
  cmp    $0x1ffe0,%eax
  ja     L102
  shl    $0xf,%ebp
  neg    %ebp
  movslq %ebp,%rbp
  mov    %rbp,%rax
  imul   %rbp,%rax
  sar    $0x20,%rax
  mov    $0x3fffffff,%r13d
  sub    %eax,%r13d
  mov    $0x2e,%esi
  mov    %r13d,%edi
  call   <SKP_INVERSE32_varQ@plt>
  mov    %eax,%edi
  mov    0x8(%rsp),%rsi
  movslq (%rsi),%rax
  movslq %r13d,%r13
  imul   %r13,%rax
  sar    $0x20,%rax
  shl    $0x2,%eax
  mov    %eax,(%rsi)
  mov    %r14d,%eax
  and    $0x1,%eax
  shl    $0x6,%rax
  lea    0x10(%rsp,%rax,1),%r13
  mov    %edi,0x4(%rsp)
  call   <SKP_Silk_CLZ32@plt>
  sub    $0x1,%eax
  mov    0x4(%rsp),%esi
  mov    %eax,%ecx
  shl    %cl,%esi
  test   %r14d,%r14d
  jle    L104
  mov    %r14d,%edi
  mov    $0x0,%edx
  movslq %esi,%rsi
  mov    $0x10,%ecx
  sub    %eax,%ecx
L95:
  movslq -0x4(%rbx),%r8
  imul   %rbp,%r8
  sar    $0x20,%r8
  add    %r8d,%r8d
  mov    (%r12,%rdx,4),%eax
  sub    %r8d,%eax
  cltq
  imul   %rsi,%rax
  sar    $0x20,%rax
  shl    %cl,%eax
  mov    %eax,0x0(%r13,%rdx,4)
  add    $0x1,%rdx
  sub    $0x4,%rbx
  cmp    %rdi,%rdx
  jne    L95
  jmp    L104
L118:
  mov    %r12,%r13
L93:
  mov    0x0(%r13),%eax
  lea    0xfff0(%rax),%ecx
  mov    $0x1,%edx
  cmp    $0x1ffe0,%ecx
  ja     L119
  shl    $0xf,%eax
  neg    %eax
  cltq
  imul   %rax,%rax
  sar    $0x20,%rax
  mov    $0x3fffffff,%edx
  sub    %eax,%edx
  movslq %edx,%rax
  mov    0x8(%rsp),%rdi
  movslq (%rdi),%rdx
  imul   %rdx,%rax
  sar    $0x20,%rax
  shl    $0x2,%eax
  mov    %eax,(%rdi)
  mov    $0x0,%edx
  jmp    L119
L102:
  mov    $0x1,%edx
L119:
  mov    0x98(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L10
  mov    %edx,%eax
  add    $0xa8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L10:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int SKP_Silk_LPC_inverse_pred_gain(int *invGain_Q30, const short *A_Q12, const int order) {
  int k, n, headrm;
  int rc_Q31, rc_mult1_Q30, rc_mult2_Q16;
  int Atmp_QA[2][16], tmp_QA;
  int *Aold_QA, *Anew_QA;
  Anew_QA = Atmp_QA[order & 1];
  for (k = 0; k < order; k++) {
    Anew_QA[k] = (((int)A_Q12[k]) << (16 - 12));
  }
  *invGain_Q30 = (1 << 30);
  for (k = order - 1; k > 0; k--) {
    if ((Anew_QA[k] > 65520) || (Anew_QA[k] < -65520)) {
      return 1;
    }
    rc_Q31 = -((Anew_QA[k]) << (31 - 16));
    rc_mult1_Q30 = (0x7FFFFFFF >> 1) - (int)((((long long)((rc_Q31)) * ((rc_Q31)))) >> (32));
    ;
    ;
    rc_mult2_Q16 = SKP_INVERSE32_varQ(rc_mult1_Q30, 46);
    *invGain_Q30 = (((int)((((long long)((*invGain_Q30)) * ((rc_mult1_Q30)))) >> (32))) << (2));
    ;
    ;
    Aold_QA = Anew_QA;
    Anew_QA = Atmp_QA[k & 1];
    headrm = SKP_Silk_CLZ32(rc_mult2_Q16) - 1;
    rc_mult2_Q16 = ((rc_mult2_Q16) << (headrm));
    for (n = 0; n < k; n++) {
      tmp_QA = Aold_QA[n] - (((int)((((long long)((Aold_QA[k - n - 1])) * ((rc_Q31)))) >> (32))) << (1));
      Anew_QA[n] = (((int)((((long long)((tmp_QA)) * ((rc_mult2_Q16)))) >> (32))) << (16 - headrm));
    }
  }
  if ((Anew_QA[0] > 65520) || (Anew_QA[0] < -65520)) {
    return 1;
  }
  rc_Q31 = -((Anew_QA[0]) << (31 - 16));
  rc_mult1_Q30 = (0x7FFFFFFF >> 1) - (int)((((long long)((rc_Q31)) * ((rc_Q31)))) >> (32));
  *invGain_Q30 = (((int)((((long long)((*invGain_Q30)) * ((rc_mult1_Q30)))) >> (32))) << (2));
  ;
  ;
  return 0;
}
```