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

```asm
<fun>:
  endbr64
  test   %edi,%edi
  je     L100
  mov    %edi,%r9d
  cmp    $0x1,%edi
  je     L120
  mov    $0x0,%r10d
  jle    L206
  push   %r15
  mov    %r10d,%r8d
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
L195:
  movl   $0x0,(%rsp)
  lea    -0x1(%r9),%r10d
  mov    %r8d,0x8(%rsp)
  mov    %r9d,0xc(%rsp)
L223:
  cmp    $0x1,%r10d
  je     L148
  movl   $0x0,0x4(%rsp)
  lea    -0x1(%r10),%esi
  mov    %r10d,0x10(%rsp)
L191:
  cmp    $0x1,%esi
  je     L200
  lea    -0x1(%rsi),%ebx
  xor    %r8d,%r8d
  mov    %ebx,%edx
L101:
  cmp    $0x1,%edx
  je     L251
  lea    -0x1(%rdx),%ebp
  xor    %ecx,%ecx
L201:
  cmp    $0x1,%ebp
  je     L204
  lea    -0x1(%rbp),%r14d
  mov    %ebp,%r9d
  xor    %r15d,%r15d
  mov    %r14d,%ebp
L33:
  cmp    $0x1,%ebp
  je     L47
  lea    -0x1(%rbp),%ebx
  xor    %r10d,%r10d
L252:
  cmp    $0x1,%ebx
  je     L112
  lea    -0x1(%rbx),%r12d
  xor    %r14d,%r14d
L266:
  cmp    $0x1,%r12d
  je     L145
  xor    %r11d,%r11d
  mov    %r15d,0x14(%rsp)
  lea    -0x1(%r12),%r13d
  mov    %r14d,%r15d
  mov    %ebp,0x18(%rsp)
  mov    %r8d,%r14d
  mov    %esi,%ebp
  mov    %ebx,0x1c(%rsp)
  mov    %r11d,%ebx
  mov    %r12d,0x20(%rsp)
  mov    %edx,%r12d
L230:
  cmp    $0x1,%r13d
  je     L137
  lea    -0x1(%r13),%edi
  mov    %r10d,0x2c(%rsp)
  mov    %ecx,0x28(%rsp)
  mov    %r9d,0x24(%rsp)
  call   <fun>
  mov    0x24(%rsp),%r9d
  mov    0x28(%rsp),%ecx
  add    %eax,%ebx
  sub    $0x2,%r13d
  mov    0x2c(%rsp),%r10d
  jne    L230
  mov    %ebp,%esi
  mov    %r12d,%edx
  mov    %r14d,%r8d
  mov    %ebx,%r11d
  mov    %r15d,%r14d
  mov    0x18(%rsp),%ebp
  mov    0x14(%rsp),%r15d
  mov    $0x2,%r13d
  mov    0x1c(%rsp),%ebx
  mov    0x20(%rsp),%r12d
L66:
  add    %r11d,%r13d
  add    %r13d,%r14d
  sub    $0x2,%r12d
  jne    L266
  mov    $0x2,%r12d
L145:
  add    %r12d,%r14d
  add    %r14d,%r10d
  sub    $0x2,%ebx
  jne    L252
  mov    $0x2,%ebx
L112:
  add    %r10d,%ebx
  add    %ebx,%r15d
  sub    $0x2,%ebp
  jne    L33
  mov    %r9d,%ebp
  mov    $0x2,%r14d
L182:
  add    %r14d,%r15d
  add    %r15d,%ecx
  sub    $0x2,%ebp
  jne    L201
  mov    $0x2,%ebp
L204:
  add    %ecx,%ebp
  add    %ebp,%r8d
  sub    $0x2,%edx
  jne    L101
  mov    $0x2,%ebx
L71:
  add    %r8d,%ebx
  add    %ebx,0x4(%rsp)
  sub    $0x2,%esi
  jne    L191
  mov    0x10(%rsp),%r10d
  mov    $0x2,%esi
L246:
  mov    0x4(%rsp),%eax
  add    %esi,%eax
  add    %eax,(%rsp)
  sub    $0x2,%r10d
  jne    L223
  mov    (%rsp),%eax
  mov    0x8(%rsp),%r8d
  mov    $0x2,%r10d
  mov    0xc(%rsp),%r9d
  add    %r10d,%eax
  add    %eax,%r8d
  sub    $0x2,%r9d
  jne    L81
L152:
  lea    0x2(%r8),%r9d
  jmp    L159
  nopl   0x0(%rax,%rax,1)
L47:
  mov    %ebp,%r14d
  mov    %r9d,%ebp
  jmp    L182
  nopl   0x0(%rax,%rax,1)
L137:
  mov    %ebp,%esi
  mov    %r12d,%edx
  mov    %r14d,%r8d
  mov    %ebx,%r11d
  mov    %r15d,%r14d
  mov    0x18(%rsp),%ebp
  mov    0x14(%rsp),%r15d
  mov    0x1c(%rsp),%ebx
  mov    0x20(%rsp),%r12d
  jmp    L66
L251:
  mov    %edx,%ebx
  jmp    L71
L200:
  mov    0x10(%rsp),%r10d
  jmp    L246
L148:
  mov    (%rsp),%eax
  mov    0x8(%rsp),%r8d
  mov    0xc(%rsp),%r9d
  add    %r10d,%eax
  add    %eax,%r8d
  sub    $0x2,%r9d
  je     L152
L81:
  cmp    $0x1,%r9d
  jne    L195
  lea    0x1(%r8),%r9d
L159:
  add    $0x38,%rsp
  mov    %r9d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L100:
  mov    $0x2,%r9d
L120:
  mov    %r9d,%eax
  ret
L206:
  ret
```

assistant: ```c
int fun(int n) {
  if (n == 0) {
    return 2;
  }
  if (n == 1) {
    return 1;
  }
  if (n > 1) {
    return fun(n - 1) + fun(n - 2);
  }
}
```