user: 请从给定的汇编指令推导出C源代码:

```asm
<ft_fibonacci>:
  endbr64
  mov    %edi,%r8d
  test   %edi,%edi
  je     L221
  js     L119
  cmp    $0x1,%edi
  je     L221
  push   %r15
  xor    %r8d,%r8d
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %edi,(%rsp)
  mov    %r8d,0x4(%rsp)
L160:
  mov    (%rsp),%eax
  xor    %edx,%edx
  mov    %edx,0x8(%rsp)
  sub    $0x1,%eax
  mov    %eax,0xc(%rsp)
L75:
  mov    0xc(%rsp),%eax
  cmp    $0x1,%eax
  je     L121
  sub    $0x1,%eax
  xor    %r11d,%r11d
  mov    %eax,0x10(%rsp)
L84:
  mov    0x10(%rsp),%eax
  cmp    $0x1,%eax
  je     L291
  lea    -0x1(%rax),%r14d
  xor    %r13d,%r13d
  mov    %r14d,%r9d
  mov    %r13d,%r10d
L196:
  cmp    $0x1,%r9d
  je     L239
  lea    -0x1(%r9),%r15d
  xor    %r12d,%r12d
  mov    %r15d,%esi
  mov    %r12d,%r8d
L116:
  cmp    $0x1,%esi
  je     L232
  lea    -0x1(%rsi),%r14d
  xor    %ecx,%ecx
  mov    %r14d,%edx
L182:
  cmp    $0x1,%edx
  je     L204
  lea    -0x1(%rdx),%r12d
  xor    %ebx,%ebx
L139:
  cmp    $0x1,%r12d
  je     L169
  lea    -0x1(%r12),%ebp
  xor    %r13d,%r13d
L59:
  cmp    $0x1,%ebp
  je     L295
  mov    %r12d,0x14(%rsp)
  lea    -0x1(%rbp),%r15d
  xor    %r14d,%r14d
  mov    %r10d,%r12d
  mov    %ebx,0x18(%rsp)
  mov    %r11d,%ebx
  mov    %r13d,0x1c(%rsp)
  mov    %esi,%r13d
  mov    %ebp,0x20(%rsp)
  mov    %r9d,%ebp
L104:
  cmp    $0x1,%r15d
  je     L209
  lea    -0x1(%r15),%edi
  mov    %edx,0x2c(%rsp)
  mov    %ecx,0x28(%rsp)
  mov    %r8d,0x24(%rsp)
  call   <ft_fibonacci>
  mov    0x24(%rsp),%r8d
  mov    0x28(%rsp),%ecx
  add    %eax,%r14d
  sub    $0x2,%r15d
  mov    0x2c(%rsp),%edx
  jne    L104
  mov    %ebx,%r11d
  mov    %ebp,%r9d
  mov    %r12d,%r10d
  mov    %r13d,%esi
  mov    0x14(%rsp),%r12d
  mov    0x18(%rsp),%ebx
  mov    0x1c(%rsp),%r13d
  mov    0x20(%rsp),%ebp
L137:
  add    %r14d,%r13d
  sub    $0x2,%ebp
  jne    L59
L256:
  add    %r13d,%ebx
  sub    $0x2,%r12d
  jne    L139
L72:
  add    %ebx,%ecx
  sub    $0x2,%edx
  jne    L182
  mov    %ecx,%r13d
L248:
  add    %r13d,%r8d
  sub    $0x2,%esi
  jne    L116
  mov    %r8d,%r12d
L88:
  add    %r12d,%r10d
  sub    $0x2,%r9d
  jne    L196
  mov    %r10d,%r13d
L100:
  add    %r13d,%r11d
  subl   $0x2,0x10(%rsp)
  jne    L84
  mov    %r11d,%r12d
L273:
  add    %r12d,0x8(%rsp)
  subl   $0x2,0xc(%rsp)
  jne    L75
  mov    0x8(%rsp),%edx
  add    %edx,0x4(%rsp)
  subl   $0x2,(%rsp)
  jne    L279
L296:
  mov    0x4(%rsp),%r8d
  jmp    L24
  nopw   0x0(%rax,%rax,1)
L169:
  add    $0x1,%ebx
  jmp    L72
L204:
  mov    %ecx,%r13d
  add    $0x1,%r13d
  jmp    L248
  xchg   %ax,%ax
L209:
  mov    %ebx,%r11d
  mov    %ebp,%r9d
  mov    %r12d,%r10d
  mov    %r13d,%esi
  mov    0x14(%rsp),%r12d
  mov    0x18(%rsp),%ebx
  add    $0x1,%r14d
  mov    0x1c(%rsp),%r13d
  mov    0x20(%rsp),%ebp
  jmp    L137
  nopw   0x0(%rax,%rax,1)
L295:
  add    $0x1,%r13d
  jmp    L256
L232:
  mov    %r8d,%r12d
  add    $0x1,%r12d
  jmp    L88
L239:
  mov    %r10d,%r13d
  add    $0x1,%r13d
  jmp    L100
L291:
  mov    %r11d,%r12d
  add    $0x1,%r12d
  jmp    L273
L121:
  mov    0x8(%rsp),%edx
  add    $0x1,%edx
  add    %edx,0x4(%rsp)
  subl   $0x2,(%rsp)
  je     L296
L279:
  cmpl   $0x1,(%rsp)
  jne    L160
  mov    0x4(%rsp),%r8d
  add    $0x1,%r8d
L24:
  add    $0x38,%rsp
  mov    %r8d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L119:
  mov    $0xffffffff,%r8d
L221:
  mov    %r8d,%eax
  ret
```

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