user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<fibonacci>:
  endbr64
  test   %edi,%edi
  je     L36
  cmp    $0x1,%edi
  je     L148
  push   %r15
  xor    %r11d,%r11d
  mov    %edi,%r9d
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x58,%rsp
  mov    %r11,(%rsp)
L248:
  lea    -0x1(%r9),%eax
  xor    %r11d,%r11d
  mov    %r9d,0x48(%rsp)
  mov    %eax,0x40(%rsp)
  mov    %r11,0x8(%rsp)
L16:
  mov    0x40(%rsp),%eax
  cmp    $0x1,%eax
  je     L26
  sub    $0x1,%eax
  xor    %esi,%esi
  mov    %eax,0x44(%rsp)
  mov    %rsi,0x10(%rsp)
L130:
  mov    0x44(%rsp),%eax
  cmp    $0x1,%eax
  je     L78
  xor    %esi,%esi
  lea    -0x1(%rax),%r9d
  mov    %rsi,0x18(%rsp)
  mov    %r9d,%esi
L45:
  cmp    $0x1,%esi
  je     L222
  xor    %r8d,%r8d
  mov    %esi,0x4c(%rsp)
  lea    -0x1(%rsi),%r10d
  mov    %r8,0x20(%rsp)
  mov    %r10d,%r15d
L154:
  cmp    $0x1,%r15d
  je     L14
  lea    -0x1(%r15),%r12d
  mov    %r15d,%ecx
  xor    %r8d,%r8d
  mov    %r12d,%r15d
L195:
  cmp    $0x1,%r15d
  je     L58
  xor    %r13d,%r13d
  lea    -0x1(%r15),%ebx
  mov    %r15d,%edx
  mov    %r13,%r15
L179:
  cmp    $0x1,%ebx
  je     L59
  mov    %r15,%rax
  lea    -0x1(%rbx),%r13d
  mov    %ebx,%r15d
  xor    %r12d,%r12d
  mov    %ecx,%ebx
  mov    %rax,%rcx
L98:
  cmp    $0x1,%r13d
  je     L23
  mov    %r13d,0x2c(%rsp)
  lea    -0x1(%r13),%ebp
  xor    %r14d,%r14d
  mov    %r8,%r13
  mov    %r12,0x30(%rsp)
  mov    %edx,%r12d
L141:
  cmp    $0x1,%ebp
  je     L140
  lea    -0x1(%rbp),%edi
  mov    %rcx,0x38(%rsp)
  call   <fibonacci>
  mov    0x38(%rsp),%rcx
  add    %rax,%r14
  sub    $0x2,%ebp
  jne    L141
  mov    %r12d,%edx
  mov    %r13,%r8
  mov    0x30(%rsp),%r12
  mov    0x2c(%rsp),%r13d
L107:
  add    %r14,%r12
  sub    $0x2,%r13d
  jne    L98
  mov    %rcx,%rax
  mov    %ebx,%ecx
  mov    %r15d,%ebx
  mov    %rax,%r15
L227:
  add    %r12,%r15
  sub    $0x2,%ebx
  jne    L179
  mov    %r15,%r13
  mov    %edx,%r15d
L192:
  add    %r13,%r8
  sub    $0x2,%r15d
  jne    L195
  mov    %ecx,%r15d
L48:
  add    %r8,0x20(%rsp)
  sub    $0x2,%r15d
  jne    L154
  mov    0x4c(%rsp),%esi
  mov    0x20(%rsp),%r8
L210:
  add    %r8,0x18(%rsp)
  sub    $0x2,%esi
  jne    L45
  mov    0x18(%rsp),%rsi
L294:
  add    %rsi,0x10(%rsp)
  subl   $0x2,0x44(%rsp)
  jne    L130
  mov    0x10(%rsp),%rsi
L33:
  add    %rsi,0x8(%rsp)
  subl   $0x2,0x40(%rsp)
  jne    L16
  mov    0x48(%rsp),%r9d
  mov    0x8(%rsp),%r11
  add    %r11,(%rsp)
  sub    $0x2,%r9d
  jne    L276
L119:
  mov    (%rsp),%r11
  jmp    L250
  nopl   0x0(%rax,%rax,1)
L140:
  mov    %r12d,%edx
  mov    %r13,%r8
  mov    0x30(%rsp),%r12
  mov    0x2c(%rsp),%r13d
  add    $0x1,%r14
  jmp    L107
  nopl   0x0(%rax)
L23:
  mov    %rcx,%rax
  add    $0x1,%r12
  mov    %ebx,%ecx
  mov    %r15d,%ebx
  mov    %rax,%r15
  jmp    L227
L58:
  mov    %ecx,%r15d
  add    $0x1,%r8
  jmp    L48
L59:
  mov    %r15,%r13
  mov    %edx,%r15d
  add    $0x1,%r13
  jmp    L192
L14:
  mov    0x20(%rsp),%r8
  mov    0x4c(%rsp),%esi
  add    $0x1,%r8
  jmp    L210
L222:
  mov    0x18(%rsp),%rsi
  add    $0x1,%rsi
  jmp    L294
L78:
  mov    0x10(%rsp),%rsi
  add    $0x1,%rsi
  jmp    L33
L26:
  mov    0x8(%rsp),%r11
  mov    0x48(%rsp),%r9d
  add    $0x1,%r11
  add    %r11,(%rsp)
  sub    $0x2,%r9d
  je     L119
L276:
  cmp    $0x1,%r9d
  jne    L248
  mov    (%rsp),%r11
  add    $0x1,%r11
L250:
  add    $0x58,%rsp
  mov    %r11,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L36:
  xor    %r11d,%r11d
L42:
  mov    %r11,%rax
  ret
L148:
  mov    $0x1,%r11d
  jmp    L42
```

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