user: Converte this assembly snippet into its equivalent C code:

```asm
<fibonacci>:
  endbr64
  cmp    $0x1,%edi
  jbe    L137
  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)
L40:
  mov    0x4(%rsp),%eax
  cmp    $0x1,%eax
  jbe    L22
  sub    $0x1,%eax
  movl   $0x0,0x10(%rsp)
  mov    %eax,0x20(%rsp)
  mov    %eax,0x8(%rsp)
  mov    0x8(%rsp),%eax
  cmp    $0x1,%eax
  je     L119
L114:
  sub    $0x1,%eax
  movl   $0x0,0x14(%rsp)
  mov    %eax,%r14d
  mov    %eax,0x24(%rsp)
  cmp    $0x1,%r14d
  je     L69
L183:
  lea    -0x1(%r14),%eax
  movl   $0x0,0x18(%rsp)
  mov    %eax,0x2c(%rsp)
  mov    %eax,%r11d
  mov    %r14d,0x34(%rsp)
L54:
  cmp    $0x1,%r11d
  je     L239
  lea    -0x1(%r11),%eax
  movl   $0x0,0x1c(%rsp)
  mov    %eax,%r14d
  mov    %eax,0x28(%rsp)
  mov    %r11d,0x38(%rsp)
  cmp    $0x1,%r14d
  je     L255
L217:
  lea    -0x1(%r14),%eax
  xor    %ecx,%ecx
  mov    %r14d,0x3c(%rsp)
  mov    %eax,0x30(%rsp)
  mov    %eax,%ebp
  mov    %ecx,%r14d
L235:
  cmp    $0x1,%ebp
  je     L219
  lea    -0x1(%rbp),%r8d
  xor    %r12d,%r12d
  mov    %r14d,%ecx
  mov    %ebp,%esi
  mov    %r8d,%ebx
  mov    %r12d,%edx
L222:
  cmp    $0x1,%ebx
  je     L157
  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     L266
L138:
  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
L112:
  lea    -0x1(%rbx),%edi
  sub    $0x2,%ebx
  call   <fibonacci>
  add    %eax,%ebp
  cmp    $0x1,%ebx
  ja     L112
  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    L212
L195:
  mov    %eax,%ebp
  cmp    $0x1,%ebp
  jne    L138
L266:
  mov    $0x1,%r12d
  lea    -0x2(%rbp),%eax
  sub    $0x1,%ebp
  add    %r12d,%r13d
  cmp    $0x1,%ebp
  ja     L195
L212:
  mov    %ecx,%eax
  add    $0x1,%r13d
  mov    %ebx,%ecx
  mov    %edx,%ebx
  mov    %r14d,%edx
  mov    %eax,%r14d
L281:
  add    %r13d,%edx
  sub    $0x2,%ebx
  cmp    $0x1,%r14d
  ja     L222
  mov    %edx,%r12d
  mov    %ecx,%r14d
  mov    %esi,%ebp
  add    $0x1,%r12d
L2:
  add    %r12d,%r14d
  sub    $0x2,%ebp
  cmp    $0x1,%r8d
  ja     L235
  mov    %r14d,%ecx
  mov    0x3c(%rsp),%r14d
  add    $0x1,%ecx
  add    %ecx,0x1c(%rsp)
  cmpl   $0x1,0x30(%rsp)
  lea    -0x2(%r14),%r9d
  jbe    L187
L300:
  mov    %r9d,%r14d
  cmp    $0x1,%r14d
  jne    L217
L255:
  movl   $0x0,0x30(%rsp)
  mov    $0x1,%ecx
  lea    -0x2(%r14),%r9d
  add    %ecx,0x1c(%rsp)
  cmpl   $0x1,0x30(%rsp)
  ja     L300
L187:
  mov    0x1c(%rsp),%eax
  mov    0x38(%rsp),%r11d
  add    $0x1,%eax
L243:
  add    %eax,0x18(%rsp)
  sub    $0x2,%r11d
  cmpl   $0x1,0x28(%rsp)
  ja     L54
  mov    0x18(%rsp),%eax
  mov    0x34(%rsp),%r14d
  add    $0x1,%eax
  add    %eax,0x14(%rsp)
  lea    -0x2(%r14),%eax
  cmpl   $0x1,0x2c(%rsp)
  jbe    L267
L224:
  mov    %eax,%r14d
  cmp    $0x1,%r14d
  jne    L183
L69:
  mov    $0x1,%eax
  movl   $0x0,0x2c(%rsp)
  add    %eax,0x14(%rsp)
  cmpl   $0x1,0x2c(%rsp)
  lea    -0x2(%r14),%eax
  ja     L224
L267:
  mov    0x14(%rsp),%eax
  add    $0x1,%eax
L34:
  add    %eax,0x10(%rsp)
  mov    0x8(%rsp),%eax
  sub    $0x2,%eax
  cmpl   $0x1,0x24(%rsp)
  jbe    L126
  mov    %eax,0x8(%rsp)
  mov    0x8(%rsp),%eax
  cmp    $0x1,%eax
  jne    L114
L119:
  movl   $0x0,0x24(%rsp)
  mov    $0x1,%eax
  jmp    L34
  nopw   0x0(%rax,%rax,1)
L157:
  mov    $0x1,%r13d
  xor    %r14d,%r14d
  jmp    L281
L239:
  movl   $0x0,0x28(%rsp)
  mov    $0x1,%eax
  jmp    L243
L219:
  mov    $0x1,%r12d
  xor    %r8d,%r8d
  jmp    L2
L22:
  mov    0x4(%rsp),%edx
  mov    $0x1,%eax
  lea    -0x1(%rdx),%edi
  mov    %edi,0x20(%rsp)
L231:
  add    %eax,0xc(%rsp)
  mov    0x4(%rsp),%eax
  sub    $0x2,%eax
  cmpl   $0x1,0x20(%rsp)
  jbe    L111
  mov    %eax,0x4(%rsp)
  jmp    L40
L126:
  mov    0x10(%rsp),%eax
  add    $0x1,%eax
  jmp    L231
L111:
  mov    0xc(%rsp),%eax
  add    $0x58,%rsp
  pop    %rbx
  pop    %rbp
  add    $0x1,%eax
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L137:
  mov    $0x1,%eax
  ret
```

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