user: Demonstrate the C code that generates the assembly output below:

```asm
<fib>:
  endbr64
  test   %edi,%edi
  je     L204
  mov    %edi,%eax
  cmp    $0x1,%edi
  je     L55
  push   %r15
  sub    $0x2,%eax
  xor    %r10d,%r10d
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x58,%rsp
  mov    %eax,0x14(%rsp)
  mov    %r10,0x20(%rsp)
L299:
  mov    0x14(%rsp),%edi
  mov    %edi,%eax
  add    $0x1,%eax
  je     L71
  cmp    $0x1,%eax
  je     L346
  lea    -0x1(%rdi),%eax
  xor    %r8d,%r8d
  mov    %eax,0x18(%rsp)
  mov    %r8,0x28(%rsp)
L41:
  mov    0x18(%rsp),%edi
  mov    %edi,%eax
  add    $0x1,%eax
  je     L111
  cmp    $0x1,%eax
  je     L22
  lea    -0x1(%rdi),%eax
  xor    %ecx,%ecx
  mov    %eax,0x1c(%rsp)
  mov    %rcx,0x30(%rsp)
L387:
  mov    0x1c(%rsp),%edi
  mov    %edi,%eax
  add    $0x1,%eax
  je     L398
  cmp    $0x1,%eax
  je     L470
  xor    %ecx,%ecx
  lea    -0x1(%rdi),%r8d
  mov    %rcx,0x38(%rsp)
  mov    %r8d,%ecx
L194:
  mov    %ecx,%eax
  add    $0x1,%eax
  je     L452
  cmp    $0x1,%eax
  je     L175
  xor    %esi,%esi
  mov    %ecx,0x40(%rsp)
  lea    -0x1(%rcx),%r9d
  mov    %rsi,0x8(%rsp)
  mov    %r9d,%r15d
L364:
  mov    %r15d,%eax
  add    $0x1,%eax
  je     L537
  cmp    $0x1,%eax
  je     L378
  lea    -0x1(%r15),%r12d
  xor    %ecx,%ecx
  mov    %r15d,%esi
L18:
  mov    %r12d,%eax
  add    $0x1,%eax
  je     L531
  cmp    $0x1,%eax
  je     L498
  xor    %ebx,%ebx
  lea    -0x1(%r12),%ebp
  mov    %r12d,%edx
  mov    %rbx,%r12
L109:
  mov    %ebp,%eax
  add    $0x1,%eax
  je     L132
  cmp    $0x1,%eax
  je     L12
  mov    %ebp,%eax
  lea    -0x1(%rbp),%ebx
  xor    %r14d,%r14d
  mov    %rcx,%rbp
  mov    %eax,%ecx
L320:
  mov    %ebx,%r13d
  add    $0x1,%r13d
  je     L480
  cmp    $0x1,%r13d
  je     L431
  mov    %ebx,0x44(%rsp)
  xor    %r15d,%r15d
  mov    %esi,%ebx
L453:
  lea    -0x1(%r13),%edi
  mov    %ecx,0x4c(%rsp)
  mov    %edx,0x48(%rsp)
  call   <fib>
  mov    0x48(%rsp),%edx
  mov    0x4c(%rsp),%ecx
  add    %rax,%r15
  sub    $0x2,%r13d
  je     L66
  cmp    $0x1,%r13d
  jne    L453
  mov    %ebx,%esi
  mov    0x44(%rsp),%ebx
  add    $0x1,%r15
L503:
  add    %r15,%r14
  test   %ebx,%ebx
  je     L477
  cmp    $0x1,%ebx
  jne    L480
L431:
  mov    %ecx,%eax
  add    $0x1,%r14
  mov    %rbp,%rcx
  mov    %eax,%ebp
  add    %r14,%r12
  test   %ebp,%ebp
  je     L438
L187:
  cmp    $0x1,%ebp
  jne    L132
L12:
  mov    %r12,%rbx
  mov    %edx,%r12d
  add    $0x1,%rbx
L77:
  add    %rbx,%rcx
  test   %r12d,%r12d
  jne    L82
  mov    %esi,%r15d
  mov    %rcx,%r14
  add    %r14,0x8(%rsp)
  mov    0x8(%rsp),%rsi
  test   %r15d,%r15d
  jne    L374
L397:
  mov    0x40(%rsp),%ecx
  add    %rsi,0x38(%rsp)
  test   %ecx,%ecx
  je     L436
L94:
  cmp    $0x1,%ecx
  je     L175
L452:
  sub    $0x2,%ecx
  jmp    L194
L132:
  sub    $0x2,%ebp
  jmp    L109
L82:
  cmp    $0x1,%r12d
  jne    L531
L498:
  mov    %rcx,%r14
  mov    %esi,%r15d
  add    $0x1,%r14
  add    %r14,0x8(%rsp)
  mov    0x8(%rsp),%rsi
  test   %r15d,%r15d
  je     L397
L374:
  cmp    $0x1,%r15d
  je     L449
L537:
  sub    $0x2,%r15d
  jmp    L364
L531:
  sub    $0x2,%r12d
  jmp    L18
L477:
  mov    %ecx,%eax
  mov    %rbp,%rcx
  add    %r14,%r12
  mov    %eax,%ebp
  test   %ebp,%ebp
  jne    L187
L438:
  mov    %r12,%rbx
  mov    %edx,%r12d
  jmp    L77
  nopl   0x0(%rax)
L66:
  mov    %ebx,%esi
  mov    0x44(%rsp),%ebx
  jmp    L503
L378:
  mov    0x8(%rsp),%rsi
L449:
  mov    0x40(%rsp),%ecx
  add    $0x1,%rsi
  add    %rsi,0x38(%rsp)
  test   %ecx,%ecx
  jne    L94
L436:
  mov    0x38(%rsp),%rcx
  add    %rcx,0x30(%rsp)
  mov    0x1c(%rsp),%ecx
  test   %ecx,%ecx
  jne    L200
L456:
  mov    0x18(%rsp),%edx
  mov    0x30(%rsp),%rcx
  add    %rcx,0x28(%rsp)
  test   %edx,%edx
  jne    L310
L389:
  mov    0x28(%rsp),%r8
  jmp    L235
  nopl   0x0(%rax,%rax,1)
L480:
  sub    $0x2,%ebx
  jmp    L320
L175:
  mov    0x38(%rsp),%rcx
  add    $0x1,%rcx
  add    %rcx,0x30(%rsp)
  mov    0x1c(%rsp),%ecx
  test   %ecx,%ecx
  je     L456
L200:
  cmpl   $0x1,0x1c(%rsp)
  je     L470
L398:
  subl   $0x2,0x1c(%rsp)
  jmp    L387
L470:
  mov    0x30(%rsp),%rcx
  mov    0x18(%rsp),%edx
  add    $0x1,%rcx
  add    %rcx,0x28(%rsp)
  test   %edx,%edx
  je     L389
L310:
  cmpl   $0x1,0x18(%rsp)
  je     L22
L111:
  subl   $0x2,0x18(%rsp)
  jmp    L41
L22:
  mov    0x28(%rsp),%r8
  add    $0x1,%r8
L235:
  mov    0x14(%rsp),%eax
  add    %r8,0x20(%rsp)
  test   %eax,%eax
  je     L283
  cmpl   $0x1,0x14(%rsp)
  jne    L71
L346:
  mov    0x20(%rsp),%r10
  add    $0x1,%r10
L193:
  add    $0x58,%rsp
  mov    %r10,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L71:
  subl   $0x2,0x14(%rsp)
  jmp    L299
L204:
  xor    %r10d,%r10d
L355:
  mov    %r10,%rax
  ret
L55:
  mov    $0x1,%r10d
  jmp    L355
L283:
  mov    0x20(%rsp),%r10
  jmp    L193
```

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