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

```asm
<fibonacciRek>:
  endbr64
  mov    %edi,%r10d
  cmp    $0x1,%edi
  je     L304
  test   %edi,%edi
  je     L304
  push   %r15
  lea    -0x1(%rdi),%eax
  xor    %r10d,%r10d
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %eax,0x14(%rsp)
  mov    0x14(%rsp),%eax
  mov    %r10d,0xc(%rsp)
  mov    %eax,%r8d
  cmp    $0x1,%eax
  je     L229
L79:
  test   %eax,%eax
  je     L170
  movl   $0x0,0x4(%rsp)
L315:
  lea    -0x1(%r8),%eax
  cmp    $0x2,%r8d
  je     L322
  sub    $0x2,%r8d
  mov    %r8d,%esi
  test   %eax,%eax
  je     L315
  movl   $0x0,0x8(%rsp)
  mov    %r8d,0x18(%rsp)
  cmp    $0x1,%esi
  je     L174
L181:
  test   %esi,%esi
  je     L69
  xor    %r8d,%r8d
  mov    %esi,0x1c(%rsp)
  mov    %esi,%r15d
  mov    %r8d,0x10(%rsp)
L113:
  lea    -0x1(%r15),%eax
  cmp    $0x2,%r15d
  je     L135
  sub    $0x2,%r15d
  test   %eax,%eax
  je     L113
  xor    %r10d,%r10d
  mov    %r15d,0x20(%rsp)
  mov    %r10d,(%rsp)
L111:
  mov    %r15d,%r13d
  cmp    $0x1,%r15d
  je     L61
  test   %r15d,%r15d
  je     L53
  xor    %edx,%edx
  mov    %r15d,%esi
L499:
  lea    -0x1(%r13),%eax
  cmp    $0x2,%r13d
  je     L240
  sub    $0x2,%r13d
  mov    %r13d,%ebx
  test   %eax,%eax
  je     L499
  xor    %r12d,%r12d
  mov    %r13d,%ecx
  mov    %r12d,%r13d
L280:
  mov    %ebx,%r15d
  cmp    $0x1,%ebx
  je     L303
  test   %ebx,%ebx
  je     L336
  xor    %ebp,%ebp
  nopl   0x0(%rax)
L294:
  lea    -0x1(%r15),%r12d
  cmp    $0x2,%r15d
  je     L310
  sub    $0x2,%r15d
  test   %r12d,%r12d
  je     L294
  mov    %ebx,0x24(%rsp)
  xor    %r14d,%r14d
  mov    %ecx,%ebx
L56:
  lea    -0x1(%r12),%edi
  mov    %esi,0x2c(%rsp)
  sub    $0x2,%r12d
  mov    %edx,0x28(%rsp)
  call   <fibonacciRek>
  mov    0x28(%rsp),%edx
  mov    0x2c(%rsp),%esi
  add    %eax,%r14d
  cmp    $0x1,%r12d
  je     L320
  test   %r12d,%r12d
  jne    L56
  mov    %ebx,%ecx
  mov    0x24(%rsp),%ebx
L478:
  add    %r14d,%ebp
  cmp    $0x1,%r15d
  jne    L307
L310:
  add    $0x1,%ebp
L182:
  add    %ebp,%r13d
  lea    -0x1(%rbx),%eax
  cmp    $0x2,%ebx
  jne    L271
L303:
  mov    %r13d,%r12d
  mov    %ecx,%r13d
  add    $0x1,%r12d
L217:
  add    %r12d,%edx
  cmp    $0x1,%r13d
  jne    L261
L240:
  mov    %esi,%r15d
  add    $0x1,%edx
L380:
  add    %edx,(%rsp)
  lea    -0x1(%r15),%eax
  mov    (%rsp),%r10d
  cmp    $0x2,%r15d
  jne    L238
  mov    0x20(%rsp),%r15d
  add    $0x1,%r10d
L487:
  add    %r10d,0x10(%rsp)
  cmp    $0x1,%r15d
  je     L135
L36:
  test   %r15d,%r15d
  jne    L113
  mov    0x10(%rsp),%r8d
  mov    0x1c(%rsp),%esi
  jmp    L403
  nopl   0x0(%rax,%rax,1)
L271:
  test   %eax,%eax
  je     L419
L336:
  sub    $0x2,%ebx
  jmp    L280
L261:
  test   %r13d,%r13d
  jne    L499
  mov    %esi,%r15d
  jmp    L380
  cs nopw 0x0(%rax,%rax,1)
L320:
  mov    %ebx,%ecx
  add    $0x1,%r14d
  mov    0x24(%rsp),%ebx
  jmp    L478
L61:
  mov    (%rsp),%r10d
  mov    0x20(%rsp),%r15d
  add    $0x1,%r10d
  add    %r10d,0x10(%rsp)
  cmp    $0x1,%r15d
  jne    L36
L135:
  mov    0x10(%rsp),%r8d
  mov    0x1c(%rsp),%esi
  add    $0x1,%r8d
L403:
  add    %r8d,0x8(%rsp)
  lea    -0x1(%rsi),%eax
  cmp    $0x2,%esi
  je     L174
  test   %eax,%eax
  je     L184
L69:
  sub    $0x2,%esi
  cmp    $0x1,%esi
  jne    L181
L174:
  addl   $0x1,0x8(%rsp)
  mov    0x18(%rsp),%r8d
L73:
  mov    0x8(%rsp),%edi
  add    %edi,0x4(%rsp)
  cmp    $0x1,%r8d
  je     L322
  test   %r8d,%r8d
  jne    L315
L178:
  mov    0x4(%rsp),%edi
  add    %edi,0xc(%rsp)
  mov    0x14(%rsp),%edi
  lea    -0x1(%rdi),%eax
  cmp    $0x2,%edi
  je     L229
  test   %eax,%eax
  je     L418
L170:
  subl   $0x2,0x14(%rsp)
  mov    0x14(%rsp),%eax
  mov    %eax,%r8d
  cmp    $0x1,%eax
  jne    L79
L229:
  mov    0xc(%rsp),%r10d
  add    $0x1,%r10d
L284:
  add    $0x38,%rsp
  mov    %r10d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L238:
  test   %eax,%eax
  je     L96
L53:
  sub    $0x2,%r15d
  jmp    L111
L419:
  mov    %r13d,%r12d
  mov    %ecx,%r13d
  jmp    L217
L307:
  test   %r15d,%r15d
  jne    L294
  jmp    L182
L322:
  addl   $0x1,0x4(%rsp)
  jmp    L178
L304:
  mov    %r10d,%eax
  ret
L418:
  mov    0xc(%rsp),%r10d
  jmp    L284
L96:
  mov    0x20(%rsp),%r15d
  mov    (%rsp),%r10d
  jmp    L487
L184:
  mov    0x18(%rsp),%r8d
  jmp    L73
```

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