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

```asm
<fn_invFHaarWT2p2_I16>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x60,%rsp
  mov    %rdi,-0x48(%rbp)
  mov    %rsi,-0x50(%rbp)
  mov    %edx,-0x54(%rbp)
  mov    %ecx,-0x58(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,%rdi
  mov    -0x54(%rbp),%eax
  sub    $0x1,%rax
  mov    %rax,-0x20(%rbp)
  mov    -0x54(%rbp),%eax
  mov    %eax,%eax
  mov    %rax,%r10
  mov    $0x0,%r11d
  mov    -0x54(%rbp),%eax
  mov    %eax,%eax
  mov    %rax,%r8
  mov    $0x0,%r9d
  mov    -0x54(%rbp),%eax
  lea    (%rax,%rax,1),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%esi
  mov    $0x0,%edx
  div    %rsi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L198:
  cmp    %rdx,%rsp
  je     L68
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L198
L68:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L111
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L111:
  mov    %rsp,%rax
  add    $0x1,%rax
  shr    %rax
  add    %rax,%rax
  mov    %rax,-0x18(%rbp)
  movl   $0x0,-0x34(%rbp)
  mov    -0x54(%rbp),%eax
  mov    %eax,-0x38(%rbp)
  mov    -0x18(%rbp),%rax
  mov    %rax,-0x30(%rbp)
  mov    -0x54(%rbp),%eax
  shr    %eax
  mov    %eax,%eax
  lea    (%rax,%rax,1),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x28(%rbp)
  cmpl   $0x0,-0x58(%rbp)
  je     L119
  cmpl   $0x1,-0x58(%rbp)
  jne    L92
  movl   $0x0,-0x40(%rbp)
  jmp    L3
L108:
  mov    -0x40(%rbp),%eax
  shr    %eax
  mov    %eax,%edx
  mov    -0x54(%rbp),%eax
  shr    %eax
  add    %edx,%eax
  mov    %eax,%eax
  lea    (%rax,%rax,1),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  mov    -0x40(%rbp),%edx
  lea    (%rdx,%rdx,1),%rcx
  mov    -0x48(%rbp),%rdx
  add    %rcx,%rdx
  movzwl (%rax),%eax
  mov    %ax,(%rdx)
  mov    -0x40(%rbp),%eax
  shr    %eax
  mov    %eax,%edx
  mov    -0x54(%rbp),%eax
  shr    %eax
  add    %edx,%eax
  mov    %eax,%eax
  lea    (%rax,%rax,1),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  mov    -0x40(%rbp),%edx
  add    $0x1,%edx
  mov    %edx,%edx
  lea    (%rdx,%rdx,1),%rcx
  mov    -0x48(%rbp),%rdx
  add    %rcx,%rdx
  movzwl (%rax),%eax
  mov    %ax,(%rdx)
  mov    -0x40(%rbp),%eax
  lea    (%rax,%rax,1),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  mov    %eax,%ecx
  mov    -0x40(%rbp),%eax
  shr    %eax
  mov    %eax,%eax
  lea    (%rax,%rax,1),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  lea    (%rcx,%rax,1),%edx
  mov    -0x40(%rbp),%eax
  lea    (%rax,%rax,1),%rcx
  mov    -0x48(%rbp),%rax
  add    %rcx,%rax
  mov    %dx,(%rax)
  mov    -0x40(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,%eax
  lea    (%rax,%rax,1),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  mov    %eax,%edx
  mov    -0x40(%rbp),%eax
  shr    %eax
  mov    %eax,%eax
  lea    (%rax,%rax,1),%rcx
  mov    -0x50(%rbp),%rax
  add    %rcx,%rax
  movzwl (%rax),%eax
  sub    %eax,%edx
  mov    -0x40(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,%eax
  lea    (%rax,%rax,1),%rcx
  mov    -0x48(%rbp),%rax
  add    %rcx,%rax
  mov    %dx,(%rax)
  addl   $0x2,-0x40(%rbp)
L3:
  mov    -0x40(%rbp),%eax
  cmp    -0x54(%rbp),%eax
  jb     L108
  jmp    L61
L92:
  mov    -0x58(%rbp),%eax
  mov    %eax,%ecx
  shrl   %cl,-0x38(%rbp)
  mov    -0x54(%rbp),%eax
  sub    -0x38(%rbp),%eax
  mov    %eax,-0x34(%rbp)
  movl   $0x0,-0x40(%rbp)
  jmp    L89
L83:
  mov    -0x40(%rbp),%eax
  shr    %eax
  mov    %eax,%edx
  mov    -0x34(%rbp),%eax
  add    %edx,%eax
  mov    %eax,%eax
  lea    (%rax,%rax,1),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%ecx
  mov    -0x18(%rbp),%rax
  mov    -0x40(%rbp),%edx
  mov    %cx,(%rax,%rdx,2)
  mov    -0x40(%rbp),%eax
  shr    %eax
  mov    %eax,%edx
  mov    -0x34(%rbp),%eax
  add    %edx,%eax
  mov    %eax,%eax
  lea    (%rax,%rax,1),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  mov    -0x40(%rbp),%edx
  lea    0x1(%rdx),%ecx
  movzwl (%rax),%edx
  mov    -0x18(%rbp),%rax
  mov    %ecx,%ecx
  mov    %dx,(%rax,%rcx,2)
  addl   $0x2,-0x40(%rbp)
L89:
  mov    -0x38(%rbp),%eax
  add    %eax,%eax
  cmp    %eax,-0x40(%rbp)
  jb     L83
  shll   -0x38(%rbp)
  mov    -0x54(%rbp),%eax
  sub    -0x38(%rbp),%eax
  mov    %eax,-0x34(%rbp)
  movl   $0x0,-0x40(%rbp)
  jmp    L185
L144:
  mov    -0x18(%rbp),%rax
  mov    -0x40(%rbp),%edx
  movzwl (%rax,%rdx,2),%eax
  mov    %eax,%ecx
  mov    -0x40(%rbp),%eax
  shr    %eax
  mov    %eax,%edx
  mov    -0x34(%rbp),%eax
  add    %edx,%eax
  mov    %eax,%eax
  lea    (%rax,%rax,1),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  add    %ecx,%eax
  mov    %eax,%ecx
  mov    -0x18(%rbp),%rax
  mov    -0x40(%rbp),%edx
  mov    %cx,(%rax,%rdx,2)
  mov    -0x40(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x18(%rbp),%rax
  mov    %edx,%edx
  movzwl (%rax,%rdx,2),%eax
  mov    %eax,%edx
  mov    -0x40(%rbp),%eax
  shr    %eax
  mov    %eax,%ecx
  mov    -0x34(%rbp),%eax
  add    %ecx,%eax
  mov    %eax,%eax
  lea    (%rax,%rax,1),%rcx
  mov    -0x50(%rbp),%rax
  add    %rcx,%rax
  movzwl (%rax),%eax
  sub    %eax,%edx
  mov    -0x40(%rbp),%eax
  lea    0x1(%rax),%esi
  mov    %edx,%ecx
  mov    -0x18(%rbp),%rax
  mov    %esi,%edx
  mov    %cx,(%rax,%rdx,2)
  addl   $0x2,-0x40(%rbp)
L185:
  mov    -0x40(%rbp),%eax
  cmp    -0x38(%rbp),%eax
  jb     L144
  movl   $0x1,-0x3c(%rbp)
  jmp    L148
L46:
  shll   -0x38(%rbp)
  mov    -0x54(%rbp),%eax
  sub    -0x38(%rbp),%eax
  mov    %eax,-0x34(%rbp)
  movl   $0x0,-0x40(%rbp)
  jmp    L123
L78:
  mov    -0x40(%rbp),%eax
  shr    %eax
  mov    %eax,%eax
  lea    (%rax,%rax,1),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    -0x40(%rbp),%edx
  lea    (%rdx,%rdx,1),%rcx
  mov    -0x28(%rbp),%rdx
  add    %rcx,%rdx
  movzwl (%rax),%eax
  mov    %ax,(%rdx)
  mov    -0x40(%rbp),%eax
  shr    %eax
  mov    %eax,%eax
  lea    (%rax,%rax,1),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    -0x40(%rbp),%edx
  add    $0x1,%edx
  mov    %edx,%edx
  lea    (%rdx,%rdx,1),%rcx
  mov    -0x28(%rbp),%rdx
  add    %rcx,%rdx
  movzwl (%rax),%eax
  mov    %ax,(%rdx)
  mov    -0x40(%rbp),%eax
  lea    (%rax,%rax,1),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  mov    %eax,%ecx
  mov    -0x40(%rbp),%eax
  shr    %eax
  mov    %eax,%edx
  mov    -0x34(%rbp),%eax
  add    %edx,%eax
  mov    %eax,%eax
  lea    (%rax,%rax,1),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  lea    (%rcx,%rax,1),%edx
  mov    -0x40(%rbp),%eax
  lea    (%rax,%rax,1),%rcx
  mov    -0x28(%rbp),%rax
  add    %rcx,%rax
  mov    %dx,(%rax)
  mov    -0x40(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,%eax
  lea    (%rax,%rax,1),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  mov    %eax,%edx
  mov    -0x40(%rbp),%eax
  shr    %eax
  mov    %eax,%ecx
  mov    -0x34(%rbp),%eax
  add    %ecx,%eax
  mov    %eax,%eax
  lea    (%rax,%rax,1),%rcx
  mov    -0x50(%rbp),%rax
  add    %rcx,%rax
  movzwl (%rax),%eax
  sub    %eax,%edx
  mov    -0x40(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,%eax
  lea    (%rax,%rax,1),%rcx
  mov    -0x28(%rbp),%rax
  add    %rcx,%rax
  mov    %dx,(%rax)
  addl   $0x2,-0x40(%rbp)
L123:
  mov    -0x40(%rbp),%eax
  cmp    -0x38(%rbp),%eax
  jb     L78
  mov    -0x30(%rbp),%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x28(%rbp),%rax
  mov    %rax,-0x30(%rbp)
  mov    -0x10(%rbp),%rax
  mov    %rax,-0x28(%rbp)
  addl   $0x1,-0x3c(%rbp)
L148:
  mov    -0x58(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0x3c(%rbp)
  jb     L46
  movl   $0x0,-0x40(%rbp)
  jmp    L70
L147:
  mov    -0x40(%rbp),%eax
  shr    %eax
  mov    %eax,%eax
  lea    (%rax,%rax,1),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    -0x40(%rbp),%edx
  lea    (%rdx,%rdx,1),%rcx
  mov    -0x48(%rbp),%rdx
  add    %rcx,%rdx
  movzwl (%rax),%eax
  mov    %ax,(%rdx)
  mov    -0x40(%rbp),%eax
  shr    %eax
  mov    %eax,%eax
  lea    (%rax,%rax,1),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    -0x40(%rbp),%edx
  add    $0x1,%edx
  mov    %edx,%edx
  lea    (%rdx,%rdx,1),%rcx
  mov    -0x48(%rbp),%rdx
  add    %rcx,%rdx
  movzwl (%rax),%eax
  mov    %ax,(%rdx)
  mov    -0x40(%rbp),%eax
  lea    (%rax,%rax,1),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  mov    %eax,%ecx
  mov    -0x40(%rbp),%eax
  shr    %eax
  mov    %eax,%eax
  lea    (%rax,%rax,1),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  lea    (%rcx,%rax,1),%edx
  mov    -0x40(%rbp),%eax
  lea    (%rax,%rax,1),%rcx
  mov    -0x48(%rbp),%rax
  add    %rcx,%rax
  mov    %dx,(%rax)
  mov    -0x40(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,%eax
  lea    (%rax,%rax,1),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  mov    %eax,%edx
  mov    -0x40(%rbp),%eax
  shr    %eax
  mov    %eax,%eax
  lea    (%rax,%rax,1),%rcx
  mov    -0x50(%rbp),%rax
  add    %rcx,%rax
  movzwl (%rax),%eax
  sub    %eax,%edx
  mov    -0x40(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,%eax
  lea    (%rax,%rax,1),%rcx
  mov    -0x48(%rbp),%rax
  add    %rcx,%rax
  mov    %dx,(%rax)
  addl   $0x2,-0x40(%rbp)
L70:
  mov    -0x40(%rbp),%eax
  cmp    -0x54(%rbp),%eax
  jb     L147
  jmp    L61
L119:
  nop
L61:
  nop
  mov    %rdi,%rsp
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L23
  call   <__stack_chk_fail@plt>
L23:
  leave
  ret
```

assistant: ```c
void fn_invFHaarWT2p2_I16(short *ai_da, short *ai_ka, const unsigned int const cuci_N, const unsigned int const cuic_w) {
  short ai_buff[cuci_N];
  unsigned int ui_j;
  unsigned int ui_i;
  unsigned int ui_step = 0;
  unsigned int ui_ord = cuci_N;
  short *pi_p1 = &ai_buff[0];
  short *pi_p2 = &ai_buff[cuci_N >> 1];
  short *pi_temp;
  switch (cuic_w) {
  case 0:
    break;
  case 1:
    for (ui_j = 0; ui_j < cuci_N; ui_j = ui_j + 2) {
      ai_da[ui_j] = ai_ka[(ui_j >> 1) + (cuci_N >> 1)];
      ai_da[ui_j + 1] = ai_ka[(ui_j >> 1) + (cuci_N >> 1)];
      ai_da[ui_j] = ai_da[ui_j] + ai_ka[(ui_j >> 1)];
      ai_da[ui_j + 1] = ai_da[ui_j + 1] - ai_ka[(ui_j >> 1)];
    }
    break;
  default:
    ui_ord = ui_ord >> cuic_w;
    ui_step = cuci_N - ui_ord;
    for (ui_j = 0; ui_j < (ui_ord << 1); ui_j = ui_j + 2) {
      ai_buff[ui_j] = ai_ka[(ui_j >> 1) + ui_step];
      ai_buff[ui_j + 1] = ai_ka[(ui_j >> 1) + ui_step];
    }
    ui_ord = ui_ord << 1;
    ui_step = cuci_N - ui_ord;
    for (ui_j = 0; ui_j < ui_ord; ui_j = ui_j + 2) {
      ai_buff[ui_j] = ai_buff[ui_j] + ai_ka[(ui_j >> 1) + ui_step];
      ai_buff[ui_j + 1] = ai_buff[ui_j + 1] - ai_ka[(ui_j >> 1) + ui_step];
    }
    for (ui_i = 1; ui_i < (cuic_w - 1); ui_i++) {
      ui_ord = ui_ord << 1;
      ui_step = cuci_N - ui_ord;
      for (ui_j = 0; ui_j < ui_ord; ui_j = ui_j + 2) {
        pi_p2[ui_j] = pi_p1[ui_j >> 1];
        pi_p2[ui_j + 1] = pi_p1[ui_j >> 1];
        pi_p2[ui_j] = pi_p2[ui_j] + ai_ka[(ui_j >> 1) + ui_step];
        pi_p2[ui_j + 1] = pi_p2[ui_j + 1] - ai_ka[(ui_j >> 1) + ui_step];
      }
      pi_temp = pi_p1;
      pi_p1 = pi_p2;
      pi_p2 = pi_temp;
    }
    for (ui_j = 0; ui_j < cuci_N; ui_j = ui_j + 2) {
      ai_da[ui_j] = pi_p1[ui_j >> 1];
      ai_da[ui_j + 1] = pi_p1[ui_j >> 1];
      ai_da[ui_j] = ai_da[ui_j] + ai_ka[ui_j >> 1];
      ai_da[ui_j + 1] = ai_da[ui_j + 1] - ai_ka[ui_j >> 1];
    }
    break;
  }
  return;
}
```