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

```asm
<fibonacci>:
  endbr64
  test   %edi,%edi
  js     L312
  mov    %edi,%r8d
  je     L19
  cmp    $0x1,%edi
  je     L19
  push   %r15
  xor    %r8d,%r8d
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %edi,0xc(%rsp)
  mov    %r8d,(%rsp)
L220:
  mov    0xc(%rsp),%eax
  lea    -0x1(%rax),%edi
  mov    %edi,0x10(%rsp)
  cmp    $0x2,%eax
  je     L63
  xor    %r11d,%r11d
  mov    %r11d,0x4(%rsp)
L350:
  mov    0x10(%rsp),%eax
  lea    -0x1(%rax),%r11d
  cmp    $0x2,%eax
  je     L150
  xor    %ebx,%ebx
  mov    %ebx,0x8(%rsp)
L277:
  lea    -0x1(%r11),%r10d
  cmp    $0x2,%r11d
  je     L95
  xor    %r9d,%r9d
L294:
  lea    -0x1(%r10),%edx
  cmp    $0x2,%r10d
  je     L38
  xor    %r8d,%r8d
L251:
  lea    -0x1(%rdx),%ebx
  cmp    $0x2,%edx
  je     L298
  xor    %esi,%esi
L372:
  lea    -0x1(%rbx),%r13d
  cmp    $0x2,%ebx
  je     L335
  xor    %r12d,%r12d
  mov    %ebx,%ecx
  nopl   0x0(%rax)
L127:
  lea    -0x1(%r13),%r14d
  cmp    $0x2,%r13d
  je     L244
  xor    %ebp,%ebp
L329:
  lea    -0x1(%r14),%r15d
  cmp    $0x2,%r14d
  je     L28
  mov    %r13d,0x14(%rsp)
  xor    %ebx,%ebx
  mov    %r10d,%r13d
  mov    %r12d,0x18(%rsp)
  mov    %r11d,%r12d
  mov    %r14d,0x1c(%rsp)
  mov    %r9d,%r14d
  mov    %ebp,0x20(%rsp)
  mov    %ecx,%ebp
  jmp    L192
L129:
  cmp    $0x1,%r15d
  je     L281
L192:
  lea    -0x1(%r15),%edi
  mov    %edx,0x2c(%rsp)
  mov    %esi,0x28(%rsp)
  mov    %r8d,0x24(%rsp)
  call   <fibonacci>
  mov    0x24(%rsp),%r8d
  mov    0x28(%rsp),%esi
  add    %eax,%ebx
  sub    $0x2,%r15d
  mov    0x2c(%rsp),%edx
  jne    L129
  mov    %ebp,%ecx
  mov    %r12d,%r11d
  mov    %r13d,%r10d
  mov    %r14d,%r9d
  mov    0x14(%rsp),%r13d
  mov    0x18(%rsp),%r12d
  mov    0x1c(%rsp),%r14d
  mov    0x20(%rsp),%ebp
L173:
  add    %ebx,%ebp
  sub    $0x2,%r14d
  je     L273
  cmp    $0x1,%r14d
  jne    L329
L28:
  add    $0x1,%ebp
L273:
  add    %ebp,%r12d
  sub    $0x2,%r13d
  je     L280
  cmp    $0x1,%r13d
  jne    L127
L244:
  add    $0x1,%r12d
  mov    %ecx,%ebx
  add    %r12d,%esi
  sub    $0x2,%ebx
  je     L147
L222:
  cmp    $0x1,%ebx
  jne    L372
L335:
  mov    %esi,%ebp
  add    $0x1,%ebp
  add    %ebp,%r8d
  sub    $0x2,%edx
  je     L81
L11:
  cmp    $0x1,%edx
  jne    L251
L298:
  mov    %r8d,%ebx
  add    $0x1,%ebx
  add    %ebx,%r9d
  sub    $0x2,%r10d
  je     L278
L310:
  cmp    $0x1,%r10d
  jne    L294
L38:
  mov    %r9d,%ebp
  add    $0x1,%ebp
  add    %ebp,0x8(%rsp)
  sub    $0x2,%r11d
  je     L349
L200:
  cmp    $0x1,%r11d
  jne    L277
L95:
  mov    0x8(%rsp),%ebx
  add    $0x1,%ebx
L224:
  add    %ebx,0x4(%rsp)
  subl   $0x2,0x10(%rsp)
  je     L355
  cmpl   $0x1,0x10(%rsp)
  jne    L350
L150:
  mov    0x4(%rsp),%r11d
  add    $0x1,%r11d
L139:
  add    %r11d,(%rsp)
  subl   $0x2,0xc(%rsp)
  je     L211
  cmpl   $0x1,0xc(%rsp)
  jne    L220
L63:
  mov    (%rsp),%r8d
  add    $0x1,%r8d
L377:
  add    $0x38,%rsp
  mov    %r8d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L280:
  mov    %ecx,%ebx
  add    %r12d,%esi
  sub    $0x2,%ebx
  jne    L222
L147:
  mov    %esi,%ebp
  add    %ebp,%r8d
  sub    $0x2,%edx
  jne    L11
L81:
  mov    %r8d,%ebx
  add    %ebx,%r9d
  sub    $0x2,%r10d
  jne    L310
L278:
  mov    %r9d,%ebp
  add    %ebp,0x8(%rsp)
  sub    $0x2,%r11d
  jne    L200
L349:
  mov    0x8(%rsp),%ebx
  jmp    L224
  nopl   0x0(%rax,%rax,1)
L281:
  mov    %ebp,%ecx
  mov    %r12d,%r11d
  mov    %r13d,%r10d
  mov    %r14d,%r9d
  mov    0x14(%rsp),%r13d
  mov    0x18(%rsp),%r12d
  add    $0x1,%ebx
  mov    0x1c(%rsp),%r14d
  mov    0x20(%rsp),%ebp
  jmp    L173
L312:
  mov    $0xffffffff,%r8d
L19:
  mov    %r8d,%eax
  ret
L355:
  mov    0x4(%rsp),%r11d
  jmp    L139
L211:
  mov    (%rsp),%r8d
  jmp    L377
```

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