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

```asm
<fib>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %edi,0xc(%rsp)
  mov    %edi,0x4(%rsp)
  movl   $0x0,0x10(%rsp)
  cmp    $0x1,%edi
  jle    L124
L182:
  mov    0x4(%rsp),%eax
  movl   $0x0,0x14(%rsp)
  sub    $0x1,%eax
  mov    %eax,0x8(%rsp)
  cmp    $0x1,%eax
  je     L48
L191:
  mov    0x8(%rsp),%eax
  movl   $0x0,0x18(%rsp)
  sub    $0x1,%eax
  mov    %eax,%r11d
  cmp    $0x1,%eax
  je     L94
L192:
  lea    -0x1(%r11),%eax
  movl   $0x0,0x1c(%rsp)
  cmp    $0x1,%eax
  je     L228
  mov    %r11d,0x20(%rsp)
  mov    %eax,%r11d
L101:
  xor    %ecx,%ecx
  lea    -0x1(%r11),%r12d
  mov    %ecx,%r15d
  cmp    $0x1,%r12d
  je     L50
L89:
  lea    -0x1(%r12),%ebx
  xor    %edx,%edx
  cmp    $0x1,%ebx
  je     L0
L214:
  cmp    $0x2,%ebx
  je     L126
  lea    -0x3(%rbx),%r13d
  lea    -0x6(%rbx),%esi
  xor    %r8d,%r8d
  mov    %r13d,%eax
  lea    -0x4(%rbx),%r9d
  and    $0xfffffffe,%eax
  sub    %eax,%esi
L139:
  lea    0x2(%r9),%ebp
  xor    %ecx,%ecx
  cmp    $0xffffffff,%r9d
  je     L217
L125:
  lea    -0x1(%rbp),%r14d
  xor    %r10d,%r10d
  cmp    $0x1,%r14d
  je     L97
L37:
  lea    -0x1(%r14),%edi
  mov    %r9d,0x3c(%rsp)
  sub    $0x2,%r14d
  mov    %esi,0x38(%rsp)
  mov    %r10d,0x34(%rsp)
  mov    %ecx,0x30(%rsp)
  mov    %r8d,0x2c(%rsp)
  mov    %edx,0x28(%rsp)
  mov    %r11d,0x24(%rsp)
  call   <fib>
  mov    0x34(%rsp),%r10d
  mov    0x24(%rsp),%r11d
  mov    0x28(%rsp),%edx
  mov    0x2c(%rsp),%r8d
  add    %eax,%r10d
  cmp    $0x1,%r14d
  mov    0x30(%rsp),%ecx
  mov    0x38(%rsp),%esi
  mov    0x3c(%rsp),%r9d
  jg     L37
  lea    -0x3(%rbp),%eax
  and    $0x1,%eax
  add    %r10d,%eax
L186:
  sub    $0x2,%ebp
  add    %eax,%ecx
  cmp    $0x1,%ebp
  jg     L125
  mov    %r9d,%ebp
  and    $0x1,%ebp
  add    %ecx,%ebp
L217:
  sub    $0x2,%r9d
  add    %ebp,%r8d
  cmp    %r9d,%esi
  jne    L139
  and    $0x1,%r13d
  lea    0x0(%r13,%r8,1),%eax
L199:
  sub    $0x2,%ebx
  add    %eax,%edx
  cmp    $0x1,%ebx
  jg     L214
  lea    -0x3(%r12),%eax
  and    $0x1,%eax
  add    %edx,%eax
L177:
  sub    $0x2,%r12d
  add    %eax,%r15d
  cmp    $0x1,%r12d
  jg     L89
  lea    -0x3(%r11),%eax
  and    $0x1,%eax
  add    %r15d,%eax
L78:
  sub    $0x2,%r11d
  add    %eax,0x1c(%rsp)
  cmp    $0x1,%r11d
  jg     L101
  mov    0x20(%rsp),%r11d
  lea    -0x3(%r11),%eax
  and    $0x1,%eax
  add    0x1c(%rsp),%eax
L228:
  sub    $0x2,%r11d
  add    %eax,0x18(%rsp)
  cmp    $0x1,%r11d
  jg     L192
  mov    0x8(%rsp),%eax
  sub    $0x3,%eax
  and    $0x1,%eax
  add    0x18(%rsp),%eax
L35:
  subl   $0x2,0x8(%rsp)
  mov    0x8(%rsp),%edi
  add    %eax,0x14(%rsp)
  cmp    $0x1,%edi
  jg     L191
  mov    0x4(%rsp),%eax
  sub    $0x3,%eax
  and    $0x1,%eax
  add    0x14(%rsp),%eax
L48:
  subl   $0x2,0x4(%rsp)
  mov    0x4(%rsp),%edi
  add    %eax,0x10(%rsp)
  cmp    $0x1,%edi
  jg     L182
  mov    0xc(%rsp),%eax
  and    $0x1,%eax
  add    0x10(%rsp),%eax
  mov    %eax,0xc(%rsp)
L124:
  mov    0xc(%rsp),%eax
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L126:
  mov    $0x1,%eax
  jmp    L199
  nopw   0x0(%rax,%rax,1)
L97:
  mov    $0x1,%eax
  jmp    L186
L0:
  mov    $0x1,%eax
  jmp    L177
L50:
  mov    $0x1,%eax
  jmp    L78
L94:
  mov    $0x1,%eax
  jmp    L35
```

assistant: ```c
int fib(int x) {
  if (x < 2) {
    return x;
  } else {
    return fib(x - 1) + fib(x - 2);
  }
}
```