user: Translate the below assembly code into C programming language:

```asm
<fib>:
  endbr64
  cmp    $0x1,%edi
  jbe    L222
  push   %r15
  mov    %edi,%eax
  push   %r14
  sub    $0x1,%eax
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x58,%rsp
  mov    %eax,0x4(%rsp)
  movl   $0x0,0xc(%rsp)
L159:
  cmp    $0x1,%eax
  jbe    L305
  sub    $0x1,%eax
  movl   $0x0,0x10(%rsp)
  mov    %eax,0x20(%rsp)
  mov    %eax,0x8(%rsp)
  cmp    $0x1,%eax
  je     L235
L204:
  sub    $0x1,%eax
  movl   $0x0,0x14(%rsp)
  mov    %eax,%r14d
  mov    %eax,0x24(%rsp)
  cmp    $0x1,%r14d
  je     L179
L112:
  lea    -0x1(%r14),%eax
  movl   $0x0,0x18(%rsp)
  mov    %eax,0x2c(%rsp)
  mov    %eax,%r11d
  mov    %r14d,0x34(%rsp)
L6:
  cmp    $0x1,%r11d
  je     L180
  lea    -0x1(%r11),%eax
  movl   $0x0,0x1c(%rsp)
  mov    %eax,%r14d
  mov    %eax,0x28(%rsp)
  mov    %r11d,0x38(%rsp)
  cmp    $0x1,%r14d
  je     L251
L110:
  lea    -0x1(%r14),%eax
  xor    %ecx,%ecx
  mov    %r14d,0x3c(%rsp)
  mov    %eax,0x30(%rsp)
  mov    %eax,%ebp
  mov    %ecx,%r14d
L229:
  cmp    $0x1,%ebp
  je     L167
  lea    -0x1(%rbp),%r8d
  xor    %r12d,%r12d
  mov    %r14d,%ecx
  mov    %ebp,%esi
  mov    %r8d,%ebx
  mov    %r12d,%edx
L21:
  cmp    $0x1,%ebx
  je     L28
  lea    -0x1(%rbx),%r14d
  xor    %r13d,%r13d
  mov    %r14d,%ebp
  mov    %edx,%r14d
  mov    %ebx,%edx
  mov    %ecx,%ebx
  mov    %ebp,%ecx
  cmp    $0x1,%ebp
  je     L29
L264:
  mov    %edx,0x44(%rsp)
  xor    %r12d,%r12d
  mov    %ecx,%r15d
  mov    %esi,0x48(%rsp)
  mov    %ebx,0x40(%rsp)
  mov    %ebp,%ebx
  mov    %ebp,0x4c(%rsp)
  mov    %r12d,%ebp
  mov    %r8d,%r12d
L267:
  lea    -0x1(%rbx),%edi
  sub    $0x2,%ebx
  call   <fib>
  add    %eax,%ebp
  cmp    $0x1,%ebx
  ja     L267
  mov    %r12d,%r8d
  mov    %ebp,%r12d
  mov    0x4c(%rsp),%ebp
  mov    0x40(%rsp),%ebx
  add    $0x1,%r12d
  mov    0x44(%rsp),%edx
  mov    0x48(%rsp),%esi
  mov    %r15d,%ecx
  lea    -0x2(%rbp),%eax
  sub    $0x1,%ebp
  add    %r12d,%r13d
  cmp    $0x1,%ebp
  jbe    L40
L208:
  mov    %eax,%ebp
  cmp    $0x1,%ebp
  jne    L264
L29:
  mov    $0x1,%r12d
  lea    -0x2(%rbp),%eax
  sub    $0x1,%ebp
  add    %r12d,%r13d
  cmp    $0x1,%ebp
  ja     L208
L40:
  mov    %ecx,%eax
  add    $0x1,%r13d
  mov    %ebx,%ecx
  mov    %edx,%ebx
  mov    %r14d,%edx
  mov    %eax,%r14d
L199:
  add    %r13d,%edx
  sub    $0x2,%ebx
  cmp    $0x1,%r14d
  ja     L21
  mov    %edx,%r12d
  mov    %ecx,%r14d
  mov    %esi,%ebp
  add    $0x1,%r12d
L242:
  add    %r12d,%r14d
  sub    $0x2,%ebp
  cmp    $0x1,%r8d
  ja     L229
  mov    %r14d,%ecx
  mov    0x3c(%rsp),%r14d
  add    $0x1,%ecx
  add    %ecx,0x1c(%rsp)
  cmpl   $0x1,0x30(%rsp)
  lea    -0x2(%r14),%r9d
  jbe    L96
L64:
  mov    %r9d,%r14d
  cmp    $0x1,%r14d
  jne    L110
L251:
  movl   $0x0,0x30(%rsp)
  mov    $0x1,%ecx
  lea    -0x2(%r14),%r9d
  add    %ecx,0x1c(%rsp)
  cmpl   $0x1,0x30(%rsp)
  ja     L64
L96:
  mov    0x1c(%rsp),%eax
  mov    0x38(%rsp),%r11d
  add    $0x1,%eax
L132:
  add    %eax,0x18(%rsp)
  sub    $0x2,%r11d
  cmpl   $0x1,0x28(%rsp)
  ja     L6
  mov    0x18(%rsp),%eax
  mov    0x34(%rsp),%r14d
  add    $0x1,%eax
  add    %eax,0x14(%rsp)
  lea    -0x2(%r14),%eax
  cmpl   $0x1,0x2c(%rsp)
  jbe    L35
L293:
  mov    %eax,%r14d
  cmp    $0x1,%r14d
  jne    L112
L179:
  mov    $0x1,%eax
  movl   $0x0,0x2c(%rsp)
  add    %eax,0x14(%rsp)
  cmpl   $0x1,0x2c(%rsp)
  lea    -0x2(%r14),%eax
  ja     L293
L35:
  mov    0x14(%rsp),%eax
  add    $0x1,%eax
L265:
  add    %eax,0x10(%rsp)
  mov    0x8(%rsp),%eax
  sub    $0x2,%eax
  cmpl   $0x1,0x24(%rsp)
  jbe    L277
  mov    %eax,0x8(%rsp)
  cmp    $0x1,%eax
  jne    L204
L235:
  movl   $0x0,0x24(%rsp)
  mov    $0x1,%eax
  jmp    L265
  xchg   %ax,%ax
L28:
  mov    $0x1,%r13d
  xor    %r14d,%r14d
  jmp    L199
L180:
  movl   $0x0,0x28(%rsp)
  mov    $0x1,%eax
  jmp    L132
L167:
  mov    $0x1,%r12d
  xor    %r8d,%r8d
  jmp    L242
L305:
  mov    %eax,%edx
  mov    $0x1,%eax
  lea    -0x1(%rdx),%edi
  mov    %edi,0x20(%rsp)
L73:
  add    %eax,0xc(%rsp)
  mov    0x4(%rsp),%eax
  sub    $0x2,%eax
  cmpl   $0x1,0x20(%rsp)
  jbe    L209
  mov    %eax,0x4(%rsp)
  jmp    L159
L277:
  mov    0x10(%rsp),%eax
  add    $0x1,%eax
  jmp    L73
L209:
  mov    0xc(%rsp),%eax
  add    $0x58,%rsp
  pop    %rbx
  pop    %rbp
  add    $0x1,%eax
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L222:
  mov    $0x1,%eax
  ret
```

assistant: ```c
int fib(int n) {
  if (n == 0)
    return 1;
  if (n == 1)
    return 1;
  return fib(n - 1) + fib(n - 2);
}
```